From cf680517274610421f1f294dc724a39efb7395ee Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 5 Dec 2024 08:57:17 +1100 Subject: [PATCH 1/3] MAINT: upgrade to jupyter-book==1.0.3 --- .github/workflows/cache.yml | 5 ++++- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 2 +- environment.yml | 20 ++++++++------------ 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 8cb83a3..72f38b5 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -3,11 +3,14 @@ on: push: branches: - main + schedule: + # run cache monthly to prevent expiration + - cron: '0 0 1 * *' jobs: cache: runs-on: quantecon-gpu container: - image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312 + image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312-b options: --gpus all steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0fe9d9..448707e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: preview: runs-on: quantecon-gpu container: - image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312 + image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312-b options: --gpus all steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 15d8498..a62da2b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,7 +8,7 @@ jobs: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: quantecon-gpu container: - image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312 + image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312-b options: --gpus all steps: - name: Checkout diff --git a/environment.yml b/environment.yml index b7d0db3..32e9122 100644 --- a/environment.yml +++ b/environment.yml @@ -6,21 +6,17 @@ dependencies: - anaconda=2024.10 - pip - pip: - - jupyter-book==0.15.1 - - quantecon-book-theme==0.7.2 + - jupyter-book==1.0.3 + - quantecon-book-theme==0.7.6 - sphinx-tojupyter==0.3.0 - sphinxext-rediraffe==0.2.7 - - sphinx-reredirects==0.1.3 - - sphinx-exercise==0.4.1 + - sphinx-reredirects==0.1.4 + - sphinx-exercise==1.0.1 + - sphinx-proof==0.2.0 - ghp-import==1.1.0 - - sphinxcontrib-youtube==1.1.0 - - sphinx-togglebutton==0.3.1 - - array-to-latex - - prettytable - - kaleido - - arviz + - sphinxcontrib-youtube==1.3.0 #Version 1.3.0 is required as quantecon-book-theme is only compatible with sphinx<=5 + - sphinx-togglebutton==0.3.2 + - kaleido # generating static images support # Docker Requirements - pytz - # Docutils Issue (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/322) - - docutils==0.17.1 From ef12e7a77f0959d76cb8b7a6701145941c79c45a Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 5 Dec 2024 08:58:52 +1100 Subject: [PATCH 2/3] tmp: disable build cache --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 448707e..6ebe275 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,13 +24,13 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v3 - with: - workflow: cache.yml - branch: main - name: build-cache - path: _build + # - name: Download "build" folder (cache) + # uses: dawidd6/action-download-artifact@v3 + # 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} From 5bc9b8cb4b60cb33a90d44bcb6c2e272954098b3 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 5 Dec 2024 11:07:00 +1100 Subject: [PATCH 3/3] Revert "tmp: disable build cache" This reverts commit ef12e7a77f0959d76cb8b7a6701145941c79c45a. --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ebe275..448707e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,13 +24,13 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - # - name: Download "build" folder (cache) - # uses: dawidd6/action-download-artifact@v3 - # with: - # workflow: cache.yml - # branch: main - # name: build-cache - # path: _build + - name: Download "build" folder (cache) + uses: dawidd6/action-download-artifact@v3 + 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}