Execution Tests [Latest Anaconda, OSX] #326
Workflow file for this run
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, OSX] | |
| on: | |
| schedule: | |
| # UTC 16:00 is early morning in Australia | |
| - cron: '0 15 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| execution-tests-osx: | |
| name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["macos-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: | | |
| pip install "jax[CPU]" | |
| - 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 |