Skip to content

Commit

Permalink
check build
Browse files Browse the repository at this point in the history
  • Loading branch information
kp992 committed May 22, 2024
1 parent 543e50a commit 4345a13
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
# - name: Setup Anaconda
# uses: conda-incubator/setup-miniconda@v3
# with:
# auto-update-conda: true
# auto-activate-base: true
# miniconda-version: 'latest'
# python-version: "3.11"
# environment-file: environment.yml
# activate-environment: quantecon
# - name: Install JAX[CUDA] and Numpyro[CUDA]
# shell: bash -l {0}
# run: |
# pip install --upgrade "jax[cuda12_local]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
- name: Check nvidia drivers
shell: bash -l {0}
run: |
Expand All @@ -45,18 +32,18 @@ jobs:
# 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: 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
# Final Build of HTML
- name: Build HTML
shell: bash -l {0}
Expand All @@ -83,4 +70,4 @@ jobs:
deploy-message: "Preview Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 comments on commit 4345a13

Please sign in to comment.