Execution Tests [Latest Anaconda, Linux] #1627
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Execution Tests [Latest Anaconda, Linux] | |
| on: | |
| schedule: | |
| # UTC 15:00 is early morning in Australia | |
| - cron: '0 15 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| execution-tests-linux: | |
| name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-latest"] | |
| python-version: ["3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - uses: conda-incubator/setup-miniconda@v4 | |
| with: | |
| auto-update-conda: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Anaconda + Dependencies | |
| shell: bash -l {0} | |
| run: | | |
| conda install anaconda | |
| # jupyter-book pinned <2: the 2.x line drops the jb CLI (see #569); | |
| # this repo stays on jupyter-book 1.x until a JB2-compatible theme | |
| # exists (mirrors the <2.0 pin in environment.yml) | |
| pip install "jupyter-book<2" sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx-tojupyter sphinx-exercise sphinx-togglebutton | |
| - name: Install Jax [CPU] | |
| shell: bash -l {0} | |
| run: | | |
| # Pinned: jax 0.11.1 (2026-08-17) regresses XLA:CPU execution -- | |
| # numpy_vs_numba_vs_jax's lax.fori_loop and lax.scan cells go | |
| # quadratic in n, so this -W build dies on CellTimeoutError. Matches | |
| # the pin already in cache/ci/publish.yml; evidence and the exposure | |
| # map are recorded in QuantEcon/workspace-lectures#49. With jax | |
| # already present, the lecture's unpinned | |
| # `!pip install quantecon jax` cell is satisfied and does not | |
| # upgrade. | |
| pip install "jax[CPU]==0.11.0" | |
| - name: Build Lectures (+ Execution Checks) | |
| shell: bash -l {0} | |
| run: jb build lectures --path-output=./ -W --keep-going | |
| - name: Upload Execution Reports | |
| uses: actions/upload-artifact@v7 | |
| if: failure() | |
| with: | |
| name: execution-reports | |
| path: _build/html/reports |