Test documentation notebooks #120
This file contains 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: Test documentation notebooks | |
on: | |
schedule: | |
- cron: '15 6 * * 1' | |
workflow_dispatch: | |
workflow: "*" | |
env: | |
MPLBACKEND: agg | |
jobs: | |
test-documentation-notebooks: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install package and dependencies | |
shell: bash | |
run: | | |
pip install -U -e .'[doc,tests,all]' | |
pip install -U nbval pyopencl | |
- name: Display Python, pip and package versions | |
run: | | |
python -V | |
pip -V | |
pip list | |
- name: Test documentation notebooks | |
run: | | |
./doc/tutorials/run_nbval.sh |