Skip to content

Commit 9b845c9

Browse files
committed
Merge branch 'main' into add-networks
2 parents b4cff10 + 8092924 commit 9b845c9

40 files changed

+73629
-6024
lines changed

.github/.DS_Store

-6 KB
Binary file not shown.

.github/workflows/cache.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
python-version: 3.9
1919
environment-file: environment.yml
2020
activate-environment: quantecon
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
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
3434
- name: Build HTML
3535
shell: bash -l {0}
3636
run: |

.github/workflows/ci.yml

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

.github/workflows/execution.yml

Lines changed: 0 additions & 110 deletions
This file was deleted.

.github/workflows/linkcheck.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
name: Link Checker [Anaconda, Linux]
2-
on:
3-
pull_request:
4-
types: [opened, reopened]
5-
schedule:
6-
# UTC 12:00 is early morning in Australia
7-
- cron: '0 12 * * *'
8-
jobs:
9-
link-check-linux:
10-
name: Link Checking (${{ matrix.python-version }}, ${{ matrix.os }})
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
os: ["ubuntu-latest"]
16-
python-version: ["3.9"]
17-
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v2
20-
- name: Setup Anaconda
21-
uses: conda-incubator/setup-miniconda@v2
22-
with:
23-
auto-update-conda: true
24-
auto-activate-base: true
25-
miniconda-version: 'latest'
26-
python-version: 3.9
27-
environment-file: environment.yml
28-
activate-environment: quantecon
29-
- name: Download "build" folder (cache)
30-
uses: dawidd6/action-download-artifact@v2
31-
with:
32-
workflow: cache.yml
33-
branch: main
34-
name: build-cache
35-
path: _build
36-
- name: Link Checker
37-
shell: bash -l {0}
38-
run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck
39-
- name: Upload Link Checker Reports
40-
uses: actions/upload-artifact@v2
41-
if: failure()
42-
with:
43-
name: linkcheck-reports
44-
path: _build/linkcheck
1+
# name: Link Checker [Anaconda, Linux]
2+
# on:
3+
# pull_request:
4+
# types: [opened, reopened]
5+
# schedule:
6+
# # UTC 12:00 is early morning in Australia
7+
# - cron: '0 12 * * *'
8+
# jobs:
9+
# link-check-linux:
10+
# name: Link Checking (${{ matrix.python-version }}, ${{ matrix.os }})
11+
# runs-on: ${{ matrix.os }}
12+
# strategy:
13+
# fail-fast: false
14+
# matrix:
15+
# os: ["ubuntu-latest"]
16+
# python-version: ["3.9"]
17+
# steps:
18+
# - name: Checkout
19+
# uses: actions/checkout@v2
20+
# - name: Setup Anaconda
21+
# uses: conda-incubator/setup-miniconda@v2
22+
# with:
23+
# auto-update-conda: true
24+
# auto-activate-base: true
25+
# miniconda-version: 'latest'
26+
# python-version: 3.9
27+
# environment-file: environment.yml
28+
# activate-environment: quantecon
29+
# - name: Download "build" folder (cache)
30+
# uses: dawidd6/action-download-artifact@v2
31+
# with:
32+
# workflow: cache.yml
33+
# branch: main
34+
# name: build-cache
35+
# path: _build
36+
# - name: Link Checker
37+
# shell: bash -l {0}
38+
# run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck
39+
# - name: Upload Link Checker Reports
40+
# uses: actions/upload-artifact@v2
41+
# if: failure()
42+
# with:
43+
# name: linkcheck-reports
44+
# path: _build/linkcheck

0 commit comments

Comments
 (0)