Skip to content

Commit 0cc0d58

Browse files
authored
MAINT: Update remaining workflows for new docker + anaconda + cuda (#331)
* ENH: Upgrade docker with anaconda==2023.02 * update matplotlib project='3d' * change matplotlib syntax * update env * remove jax install from github actions * TST: full build * upgrade to cuda12 + jax * update all workflows and update environment * remove upgrade script * fix syntax * re-enable cache
1 parent f9793ff commit 0cc0d58

File tree

6 files changed

+18
-22
lines changed

6 files changed

+18
-22
lines changed

.github/workflows/cache.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@ jobs:
2727
needs: deploy-runner
2828
runs-on: [self-hosted, cml-gpu]
2929
container:
30-
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1
30+
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310
3131
options: --gpus all
3232
steps:
3333
- uses: actions/checkout@v3
3434
with:
3535
ref: ${{ github.event.pull_request.head.sha }}
36-
- name: Install Jax and Upgrade CUDA
36+
- name: Check nvidia drivers
3737
shell: bash -l {0}
3838
run: |
39-
pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
40-
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4139
nvidia-smi
4240
- name: Build HTML
4341
shell: bash -l {0}

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ jobs:
4040
- name: Display Pip Versions
4141
shell: bash -l {0}
4242
run: pip list
43-
# - name: Download "build" folder (cache)
44-
# uses: dawidd6/action-download-artifact@v2
45-
# with:
46-
# workflow: cache.yml
47-
# branch: main
48-
# name: build-cache
49-
# path: _build
43+
- name: Download "build" folder (cache)
44+
uses: dawidd6/action-download-artifact@v2
45+
with:
46+
workflow: cache.yml
47+
branch: main
48+
name: build-cache
49+
path: _build
5050
# Build Assets (Download Notebooks and PDF via LaTeX)
5151
- name: Build Download Notebooks (sphinx-tojupyter)
5252
shell: bash -l {0}

.github/workflows/execution.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ["ubuntu-latest"]
14-
python-version: ["3.9"]
14+
python-version: ["3.10"]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
@@ -54,7 +54,7 @@ jobs:
5454
fail-fast: false
5555
matrix:
5656
os: ["macos-latest"]
57-
python-version: ["3.8"]
57+
python-version: ["3.10"]
5858
steps:
5959
- name: Checkout
6060
uses: actions/checkout@v2
@@ -86,7 +86,7 @@ jobs:
8686
# fail-fast: false
8787
# matrix:
8888
# os: ["windows-latest"]
89-
# python-version: ["3.8"]
89+
# python-version: ["3.10"]
9090
# steps:
9191
# - name: Checkout
9292
# uses: actions/checkout@v2

.github/workflows/linkcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: ["ubuntu-latest"]
16-
python-version: ["3.9"]
16+
python-version: ["3.10"]
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v2
@@ -23,7 +23,7 @@ jobs:
2323
auto-update-conda: true
2424
auto-activate-base: true
2525
miniconda-version: 'latest'
26-
python-version: 3.9
26+
python-version: '3.10'
2727
environment-file: environment.yml
2828
activate-environment: quantecon
2929
- name: Download "build" folder (cache)

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,17 @@ jobs:
2828
needs: deploy-runner
2929
runs-on: [self-hosted, cml-gpu]
3030
container:
31-
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1
31+
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310
3232
options: --gpus all
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v3
3636
- name: Install Git (required to commit notebooks)
3737
shell: bash -l {0}
3838
run: apt-get install -y git
39-
- name: Install Jax and Upgrade CUDA
39+
- name: Check nvidia drivers
4040
shell: bash -l {0}
4141
run: |
42-
pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
43-
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4442
nvidia-smi
4543
- name: Display Conda Environment Versions
4644
shell: bash -l {0}

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: quantecon
22
channels:
33
- default
44
dependencies:
5-
- python=3.9
6-
- anaconda=2022.10
5+
- python=3.10
6+
- anaconda=2023.03
77
- pip
88
- pip:
99
- jupyter-book==0.15.1

0 commit comments

Comments
 (0)