From 5baf08b885a7e37a6c3833d9f789632797879b98 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Fri, 8 Mar 2024 10:06:27 +1100 Subject: [PATCH] MAINT: update CI versions + anaconda==2024.02 (#309) * MAINT: update CI versions + anaconda==2024.02 * TMP: disable cache for full execution check * add python and conda packages to status page * Revert "TMP: disable cache for full execution check" This reverts commit 475490617aeb9d36d65fe0c0c302c6900a1d9fac. --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/execution-linux.yml | 6 +++--- .github/workflows/execution-osx.yml | 6 +++--- .github/workflows/execution-win.yml | 6 +++--- .github/workflows/linkcheck.yml | 8 ++++---- .github/workflows/publish.yml | 8 ++++---- environment.yml | 2 +- lectures/status.md | 15 ++++++++++++++- 8 files changed, 36 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 052bb8bb..86a30032 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,9 @@ jobs: preview: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Anaconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true auto-activate-base: true @@ -34,7 +34,7 @@ jobs: shell: bash -l {0} run: pip list - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: workflow: cache.yml branch: main @@ -59,7 +59,7 @@ jobs: run: | jb build lectures --path-output ./ -n -W --keep-going - name: Upload Execution Reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports diff --git a/.github/workflows/execution-linux.yml b/.github/workflows/execution-linux.yml index 8e466b86..eea81442 100644 --- a/.github/workflows/execution-linux.yml +++ b/.github/workflows/execution-linux.yml @@ -14,8 +14,8 @@ jobs: python-version: ["3.11"] steps: - name: Checkout - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2 + uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true python-version: ${{ matrix.python-version }} @@ -32,7 +32,7 @@ jobs: shell: bash -l {0} run: jb build lectures --path-output=./ -W --keep-going - name: Upload Execution Reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports diff --git a/.github/workflows/execution-osx.yml b/.github/workflows/execution-osx.yml index 452a66d3..ac1081af 100644 --- a/.github/workflows/execution-osx.yml +++ b/.github/workflows/execution-osx.yml @@ -14,8 +14,8 @@ jobs: python-version: ["3.11"] steps: - name: Checkout - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2 + uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true python-version: ${{ matrix.python-version }} @@ -32,7 +32,7 @@ jobs: shell: bash -l {0} run: jb build lectures --path-output=./ -W --keep-going - name: Upload Execution Reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports diff --git a/.github/workflows/execution-win.yml b/.github/workflows/execution-win.yml index 7bf1701d..fea110b5 100644 --- a/.github/workflows/execution-win.yml +++ b/.github/workflows/execution-win.yml @@ -14,8 +14,8 @@ jobs: python-version: ["3.11"] steps: - name: Checkout - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2 + uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true python-version: ${{ matrix.python-version }} @@ -37,7 +37,7 @@ jobs: shell: powershell run: jb build lectures --path-output=./ -W --keep-going - name: Upload Execution Reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: execution-reports diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 518acf14..69b702b8 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -16,9 +16,9 @@ jobs: python-version: ["3.11"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Anaconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true auto-activate-base: true @@ -27,7 +27,7 @@ jobs: environment-file: environment.yml activate-environment: quantecon - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: workflow: cache.yml branch: main @@ -37,7 +37,7 @@ jobs: shell: bash -l {0} run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck - name: Upload Link Checker Reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: linkcheck-reports diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 065a5e3e..48345bfd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,9 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Anaconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true auto-activate-base: true @@ -40,7 +40,7 @@ jobs: run: pip list # Download Build Cache from cache.yml - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: workflow: cache.yml branch: main @@ -61,7 +61,7 @@ jobs: run: | jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going zip -r download-notebooks.zip _build/jupyter - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: download-notebooks path: download-notebooks.zip diff --git a/environment.yml b/environment.yml index 31698173..ba2a15a9 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - default dependencies: - python=3.11 - - anaconda=2023.09 + - anaconda=2024.02 - pip - pip: - jupyter-book==0.15.1 diff --git a/lectures/status.md b/lectures/status.md index 263b63df..3ada25f0 100644 --- a/lectures/status.md +++ b/lectures/status.md @@ -18,4 +18,17 @@ This table contains the latest execution statistics. (status:machine-details)= -These lectures are built on `linux` instances through `github actions`. \ No newline at end of file +These lectures are built on `linux` instances through `github actions`. + +These lectures are using the following python version + +```{code-cell} ipython +!python --version +``` + +and the following package versions + +```{code-cell} ipython +:tags: [hide-output] +!conda list +``` \ No newline at end of file