@@ -10,44 +10,42 @@ jobs:
1010 steps :
1111 - name : Checkout
1212 uses : actions/checkout@v5
13- - name : Setup Anaconda
14- uses : conda-incubator/setup-miniconda@v3
13+
14+ # NEW: Use composite action for environment setup
15+ - name : Setup Lecture Environment
16+ uses : quantecon/actions/setup-lecture-env@main
1517 with :
16- auto-update-conda : true
17- auto-activate-base : true
18- miniconda-version : ' latest'
19- python-version : " 3.13"
20- environment-file : environment.yml
21- activate-environment : quantecon
18+ python-version : ' 3.13'
19+ environment-file : ' environment.yml'
20+ activate-environment : ' quantecon'
21+
2222 - name : graphviz Support # TODO: required?
2323 run : |
2424 sudo apt-get -qq update && sudo apt-get install -y graphviz
25- - name : Install latex dependencies
26- run : |
27- sudo apt-get -qq update
28- sudo apt-get install -y \
29- texlive-latex-recommended \
30- texlive-latex-extra \
31- texlive-fonts-recommended \
32- texlive-fonts-extra \
33- texlive-xetex \
34- latexmk \
35- xindy \
36- dvipng \
37- cm-super
25+
26+ # NEW: Use composite action for LaTeX setup
27+ - name : Install LaTeX Dependencies
28+ uses : quantecon/actions/setup-latex@main
29+
30+ # NEW: Use composite action for building
3831 - name : Build HTML
39- shell : bash -l {0}
40- run : |
41- jb build lectures --path-output ./ -W --keep-going
32+ id : build
33+ uses : quantecon/actions/build-lectures@main
34+ with :
35+ builder : ' html'
36+ source-dir : ' lectures'
37+ extra-args : ' -W --keep-going'
38+
4239 - name : Upload Execution Reports (HTML)
4340 uses : actions/upload-artifact@v5
4441 if : failure()
4542 with :
4643 name : execution-reports
4744 path : _build/html/reports
45+
4846 - name : Upload "_build" folder (cache)
4947 uses : actions/upload-artifact@v5
5048 with :
5149 name : build-cache
5250 path : _build
53- include-hidden-files : true
51+ include-hidden-files : true
0 commit comments