@@ -15,63 +15,67 @@ jobs:
1515 python-version : 3.9
1616 environment-file : environment.yml
1717 activate-environment : quantecon
18- - name : Install latex dependencies
18+ - name : Graphics Support
1919 run : |
20- sudo apt-get -qq update
21- sudo apt-get install -y \
22- texlive-latex-recommended \
23- texlive-latex-extra \
24- texlive-fonts-recommended \
25- texlive-fonts-extra \
26- texlive-xetex \
27- latexmk \
28- xindy \
29- dvipng \
30- cm-super
20+ sudo apt-get -qq update && sudo apt-get install -y graphviz
21+ # - name: Install latex dependencies
22+ # run: |
23+ # sudo apt-get -qq update
24+ # sudo apt-get install -y \
25+ # texlive-latex-recommended \
26+ # texlive-latex-extra \
27+ # texlive-fonts-recommended \
28+ # texlive-fonts-extra \
29+ # texlive-xetex \
30+ # latexmk \
31+ # xindy \
32+ # dvipng \
33+ # cm-super
3134 - name : Display Conda Environment Versions
3235 shell : bash -l {0}
3336 run : conda list
3437 - name : Display Pip Versions
3538 shell : bash -l {0}
3639 run : pip list
37- - name : Download "build" folder (cache)
38- uses : dawidd6/action-download-artifact@v2
39- with :
40- workflow : cache.yml
41- branch : main
42- name : build-cache
43- path : _build
40+ # - name: Download "build" folder (cache)
41+ # uses: dawidd6/action-download-artifact@v2
42+ # with:
43+ # workflow: cache.yml
44+ # branch: main
45+ # name: build-cache
46+ # path: _build
4447 # Build Assets (Download Notebooks and PDF via LaTeX)
45- - name : Build PDF from LaTeX
46- shell : bash -l {0}
47- run : |
48- jb build lectures --builder pdflatex --path-output ./ -n --keep-going
49- mkdir -p _build/html/_pdf
50- cp -u _build/latex/*.pdf _build/html/_pdf
51- - name : Build Download Notebooks (sphinx-tojupyter)
52- shell : bash -l {0}
53- run : |
54- jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
55- mkdir -p _build/html/_notebooks
56- cp -u _build/jupyter/*.ipynb _build/html/_notebooks
48+ # - name: Build PDF from LaTeX
49+ # shell: bash -l {0}
50+ # run: |
51+ # jb build lectures --builder pdflatex --path-output ./ -n --keep-going
52+ # mkdir -p _build/html/_pdf
53+ # cp -u _build/latex/*.pdf _build/html/_pdf
54+ # - name: Build Download Notebooks (sphinx-tojupyter)
55+ # shell: bash -l {0}
56+ # run: |
57+ # jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
58+ # mkdir -p _build/html/_notebooks
59+ # cp -u _build/jupyter/*.ipynb _build/html/_notebooks
5760 # Build HTML (Website)
5861 # BUG: rm .doctress to remove `sphinx` rendering issues for ipywidget mimetypes
5962 # and clear the sphinx cache for building final HTML documents.
6063 - name : Build HTML
6164 shell : bash -l {0}
6265 run : |
63- rm -r _build/.doctrees
64- jb build lectures --path-output ./
65- - name : Save Build as Artifact
66- uses : actions/upload-artifact@v1
66+ # rm -r _build/.doctrees
67+ jb build lectures --path-output ./ -W --keep-going
68+ - name : Upload Execution Reports (HTML)
69+ uses : actions/upload-artifact@v2
70+ if : failure()
6771 with :
68- name : _build
69- path : _build
72+ name : execution-reports
73+ path : _build/html/reports
7074 - name : Preview Deploy to Netlify
7175 uses : nwtgck/actions-netlify@v1.1
7276 with :
7377 publish-dir : ' _build/html/'
74- production-branch : master
78+ production-branch : main
7579 github-token : ${{ secrets.GITHUB_TOKEN }}
7680 deploy-message : " Preview Deploy from GitHub Actions"
7781 env :
0 commit comments