Execution Tests [Latest Anaconda, Windows] #328
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, Windows] | |
| on: | |
| schedule: | |
| # UTC 17:00 is early morning in Australia | |
| - cron: '0 15 * * 4' | |
| workflow_dispatch: | |
| jobs: | |
| execution-tests-win: | |
| name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["windows-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: powershell | |
| # numba and llvmlite have issues on latest anaconda install for windows | |
| # https://github.com/numba/llvmlite/issues/650#issuecomment-865287766 | |
| run: | | |
| conda install anaconda | |
| conda install -c numba numba | |
| conda install -c numba llvmlite | |
| # 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: powershell | |
| 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 |