diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 0352697..1eddffd 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -16,7 +16,7 @@ jobs: build-cache: runs-on: ubuntu-latest container: - image: ghcr.io/quantecon/quantecon:latest + image: ghcr.io/quantecon/quantecon-build:latest permissions: contents: read @@ -28,7 +28,7 @@ jobs: uses: actions/checkout@v4 - name: Build and Cache - uses: quantecon/actions/build-jupyter-cache@v0 + uses: quantecon/actions/build-jupyter-cache@v0.5.0 with: builders: 'html' source-dir: 'lectures' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ace6ca..03ec9d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,12 @@ jobs: preview: runs-on: ubuntu-latest container: - image: ghcr.io/quantecon/quantecon:latest + image: ghcr.io/quantecon/quantecon-build:latest permissions: contents: read packages: read + pull-requests: write steps: - name: Checkout @@ -19,21 +20,21 @@ jobs: - name: Restore Build Cache id: cache - uses: quantecon/actions/restore-jupyter-cache@v0 + uses: quantecon/actions/restore-jupyter-cache@v0.5.0 with: cache-type: 'build' source-dir: 'lectures' - name: Build HTML id: build - uses: quantecon/actions/build-lectures@v0 + uses: quantecon/actions/build-lectures@v0.5.0 with: source-dir: 'lectures' builder: 'html' upload-failure-reports: true - name: Deploy to Netlify - uses: quantecon/actions/preview-netlify@v0 + uses: quantecon/actions/preview-netlify@v0.5.0 with: build-dir: ${{ steps.build.outputs.build-path }} netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/.github/workflows/collab.yml.disabled b/.github/workflows/collab.yml.disabled deleted file mode 100644 index e3b5f56..0000000 --- a/.github/workflows/collab.yml.disabled +++ /dev/null @@ -1,54 +0,0 @@ -name: Build Project on Google Collab (Execution) -on: [pull_request] - -jobs: - test: - runs-on: quantecon-large - container: - image: us-docker.pkg.dev/colab-images/public/runtime:latest - steps: - - uses: actions/checkout@v5 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Check for dockerenv file - run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv) - - name: Check python version - shell: bash -l {0} - run: | - python --version - - name: Display Pip Versions - shell: bash -l {0} - run: pip list - - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v11 - with: - workflow: cache.yml - branch: main - name: build-cache - path: _build - # Install build software - - name: Install Build Software - shell: bash -l {0} - run: | - pip install jupyter-book==0.15.1 docutils==0.17.1 quantecon-book-theme==0.7.2 sphinx-tojupyter==0.3.0 sphinxext-rediraffe==0.2.7 sphinx-exercise==0.4.1 sphinxcontrib-youtube==1.1.0 sphinx-togglebutton==0.3.1 arviz==0.13.0 sphinx_proof==0.2.0 sphinx_reredirects==0.1.3 - # Build of HTML (Execution Testing) - - name: Build HTML - shell: bash -l {0} - run: | - jb build lectures --path-output ./ -n -W --keep-going - - name: Upload Execution Reports - uses: actions/upload-artifact@v5 - if: failure() - with: - name: execution-reports - path: _build/html/reports - - name: Preview Deploy to Netlify - uses: nwtgck/actions-netlify@v3.0 - with: - publish-dir: '_build/html/' - production-branch: main - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Preview Deploy from GitHub Actions" - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e0c5c44..fbacc33 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest container: - image: ghcr.io/quantecon/quantecon:latest + image: ghcr.io/quantecon/quantecon-build:latest environment: name: github-pages url: ${{ steps.deploy.outputs.page-url }} @@ -28,14 +28,14 @@ jobs: uses: actions/checkout@v4 - name: Build PDF - uses: quantecon/actions/build-lectures@v0 + uses: quantecon/actions/build-lectures@v0.5.0 with: source-dir: 'lectures' builder: 'pdflatex' upload-failure-reports: true - name: Build Notebooks - uses: quantecon/actions/build-lectures@v0 + uses: quantecon/actions/build-lectures@v0.5.0 with: source-dir: 'lectures' builder: 'jupyter' @@ -43,7 +43,7 @@ jobs: - name: Build HTML id: build - uses: quantecon/actions/build-lectures@v0 + uses: quantecon/actions/build-lectures@v0.5.0 with: source-dir: 'lectures' builder: 'html' @@ -53,6 +53,6 @@ jobs: - name: Deploy to GitHub Pages id: deploy - uses: quantecon/actions/publish-gh-pages@v0 + uses: quantecon/actions/publish-gh-pages@v0.5.0 with: build-dir: ${{ steps.build.outputs.build-path }} diff --git a/_notebook_repo/environment.yml b/_notebook_repo/environment.yml index 0b4fe7d..236f4a0 100644 --- a/_notebook_repo/environment.yml +++ b/_notebook_repo/environment.yml @@ -2,6 +2,6 @@ name: lecture-python-intro channels: - default dependencies: - - python=3.10 - - anaconda=2023.03 + - python=3.13 + - anaconda=2025.12 diff --git a/environment.yml b/environment.yml index 81d1b92..a9b6ecf 100644 --- a/environment.yml +++ b/environment.yml @@ -3,17 +3,17 @@ channels: - default dependencies: - python=3.13 - - anaconda=2025.06 + - anaconda=2025.12 - pip - pip: - jupyter-book==1.0.4post1 - - quantecon-book-theme==0.9.2 - - sphinx-tojupyter==0.3.1 + - quantecon-book-theme==0.10.1 + - sphinx-tojupyter==0.4.0 - sphinxext-rediraffe==0.2.7 - - sphinx-exercise==1.0.1 + - sphinx-exercise==1.2.0 - sphinx-proof==0.2.1 - sphinxcontrib-youtube==1.4.1 - sphinx-togglebutton==0.3.2 - - sphinx-reredirects==1.0.0 + - sphinx-reredirects==0.1.4