Build Cache [using jupyter-book] #7
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: Build Cache [using jupyter-book] | |
| on: | |
| schedule: | |
| # Execute cache weekly at 3am on Monday | |
| - cron: '0 3 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| # Use unified composite action for complete environment setup | |
| - name: Setup Complete Lecture Environment | |
| uses: quantecon/actions/setup-lecture-env-full@main | |
| with: | |
| python-version: '3.13' | |
| environment-file: 'environment.yml' | |
| latex-requirements-file: 'latex-requirements.txt' | |
| environment-name: 'quantecon' | |
| - name: graphviz Support # TODO: required? | |
| run: | | |
| sudo apt-get -qq update && sudo apt-get install -y graphviz | |
| # Use composite action for building | |
| - name: Build HTML | |
| id: build | |
| uses: quantecon/actions/build-lectures@main | |
| with: | |
| builder: 'html' | |
| source-dir: 'lectures' | |
| extra-args: '-W --keep-going' | |
| - name: Upload Execution Reports (HTML) | |
| uses: actions/upload-artifact@v5 | |
| if: failure() | |
| with: | |
| name: execution-reports | |
| path: _build/html/reports | |
| - name: Upload "_build" folder (cache) | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: build-cache | |
| path: _build | |
| include-hidden-files: true |