Skip to content

MNT: Update syntax for latest QuantEcon.py PR#664 #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Closed
68 changes: 29 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Git
shell: bash -l {0}
run: apt-get -qq update && apt-get install -y git
# Install LaTeX (Support for matplotlib and PDF builds)
- name: Install latex dependencies
shell: bash -l {0}
Expand Down Expand Up @@ -62,52 +65,39 @@ jobs:
run: |
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
nvidia-smi
- name: Install latex dependencies
shell: bash -l {0}
run: |
apt-get -qq update
export DEBIAN_FRONTEND=noninteractive
apt-get install -y tzdata
apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy
- name: Display Conda Environment Versions
shell: bash -l {0}
run: conda list
- name: Display Pip Versions
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v2
with:
workflow: cache.yml
branch: main
name: build-cache
path: _build
# Download Build Cache
# - name: Download "build" folder (cache)
# uses: dawidd6/action-download-artifact@v2
# with:
# workflow: cache.yml
# branch: main
# name: build-cache
# path: _build
# Build Assets (Download Notebooks and PDF via LaTeX)
- name: Build Download Notebooks (sphinx-tojupyter)
shell: bash -l {0}
run: |
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going
mkdir -p _build/html/_notebooks
cp -u _build/jupyter/*.ipynb _build/html/_notebooks
- name: Build PDF from LaTeX
shell: bash -l {0}
run: |
jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going
mkdir _build/html/_pdf
cp -u _build/latex/*.pdf _build/html/_pdf
- name: Upload Execution Reports (LaTeX)
uses: actions/upload-artifact@v2
if: failure()
with:
name: execution-reports
path: _build/latex/reports
# - name: Build Download Notebooks (sphinx-tojupyter)
# shell: bash -l {0}
# run: |
# jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going
# mkdir -p _build/html/_notebooks
# cp -u _build/jupyter/*.ipynb _build/html/_notebooks
# - name: Build PDF from LaTeX
# shell: bash -l {0}
# run: |
# jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going
# mkdir _build/html/_pdf
# cp -u _build/latex/*.pdf _build/html/_pdf
# - name: Upload Execution Reports (LaTeX)
# uses: actions/upload-artifact@v2
# if: failure()
# with:
# name: execution-reports
# path: _build/latex/reports
# Final Build of HTML
- name: Build HTML
shell: bash -l {0}
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
- arviz==0.13.0
- kaleido
# Sandpit Requirements
- quantecon
- git+https://github.com/quantecon/QuantEcon.py
- array-to-latex
- PuLP
- cvxpy
Expand Down