diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 56f84f9c7..112cfb485 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -27,17 +27,15 @@ jobs: needs: deploy-runner runs-on: [self-hosted, cml-gpu] container: - image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1 + image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310 options: --gpus all steps: - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Install Jax and Upgrade CUDA + - name: Check nvidia drivers shell: bash -l {0} run: | - pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html - pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html nvidia-smi - name: Build HTML shell: bash -l {0} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0703ea3b5..96e909895 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,13 +40,13 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - # - name: Download "build" folder (cache) - # uses: dawidd6/action-download-artifact@v2 - # with: - # workflow: cache.yml - # branch: main - # name: build-cache - # path: _build + - name: Download "build" folder (cache) + uses: dawidd6/action-download-artifact@v2 + 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} diff --git a/.github/workflows/execution.yml b/.github/workflows/execution.yml index 14f3c36a7..ea13ba59a 100644 --- a/.github/workflows/execution.yml +++ b/.github/workflows/execution.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.9"] + python-version: ["3.10"] steps: - name: Checkout uses: actions/checkout@v2 @@ -54,7 +54,7 @@ jobs: fail-fast: false matrix: os: ["macos-latest"] - python-version: ["3.8"] + python-version: ["3.10"] steps: - name: Checkout uses: actions/checkout@v2 @@ -86,7 +86,7 @@ jobs: # fail-fast: false # matrix: # os: ["windows-latest"] - # python-version: ["3.8"] + # python-version: ["3.10"] # steps: # - name: Checkout # uses: actions/checkout@v2 diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index f4a13f090..2421da92f 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.9"] + python-version: ["3.10"] steps: - name: Checkout uses: actions/checkout@v2 @@ -23,7 +23,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: 3.9 + python-version: '3.10' environment-file: environment.yml activate-environment: quantecon - name: Download "build" folder (cache) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 10d28aced..8cf25e342 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: needs: deploy-runner runs-on: [self-hosted, cml-gpu] container: - image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1 + image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310 options: --gpus all steps: - name: Checkout @@ -36,11 +36,9 @@ jobs: - name: Install Git (required to commit notebooks) shell: bash -l {0} run: apt-get install -y git - - name: Install Jax and Upgrade CUDA + - name: Check nvidia drivers shell: bash -l {0} run: | - pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html - pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html nvidia-smi - name: Display Conda Environment Versions shell: bash -l {0} diff --git a/environment.yml b/environment.yml index 2dbcbdafe..926adb7ff 100644 --- a/environment.yml +++ b/environment.yml @@ -2,8 +2,8 @@ name: quantecon channels: - default dependencies: - - python=3.9 - - anaconda=2022.10 + - python=3.10 + - anaconda=2023.03 - pip - pip: - jupyter-book==0.15.1