Skip to content

Commit

Permalink
MAINT: update CI versions + anaconda==2024.02 (#309)
Browse files Browse the repository at this point in the history
* 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 4754906.
  • Loading branch information
mmcky authored Mar 7, 2024
1 parent a60d221 commit 5baf08b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/execution-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/execution-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/execution-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- default
dependencies:
- python=3.11
- anaconda=2023.09
- anaconda=2024.02
- pip
- pip:
- jupyter-book==0.15.1
Expand Down
15 changes: 14 additions & 1 deletion lectures/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@ This table contains the latest execution statistics.

(status:machine-details)=

These lectures are built on `linux` instances through `github actions`.
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
```

0 comments on commit 5baf08b

Please sign in to comment.