Test documentation notebooks #48
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' # Run every Monday at 6:15am | |
workflow_dispatch: | |
workflow: "*" | |
push: | |
pull_request: | |
branches: [master] | |
env: | |
MPLBACKEND: agg | |
jobs: | |
test-workbooks: | |
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.10' | |
- name: Install package and dependencies | |
shell: bash | |
run: | | |
pip install pyxem | |
pip install -U nbval pyopencl | |
pip install nb-clean | |
pip install hyperspy[gui-jupyter] | |
- name: Display Python, pip and package versions | |
run: | | |
python -V | |
pip -V | |
pip list | |
- name: Test documentation notebooks | |
run: ./run_nbval.sh |