From 4345a137d1c2851bbff8439612bffc9219d5d5c6 Mon Sep 17 00:00:00 2001 From: kp992 Date: Wed, 22 May 2024 22:41:35 +0530 Subject: [PATCH] check build --- .github/workflows/ci.yml | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a46bf36..2b761fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | @@ -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} @@ -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 }} \ No newline at end of file