Fix #951 #76
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: notebooks testing | |
on: [push, pull_request] | |
jobs: | |
test-notebooks: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
strategy: | |
matrix: | |
python-version: ['3.9'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[test] tox-gh-actions | |
# test code *and* notebooks (tutorials and examples) | |
- name: Test the code, tutorials and examples | |
if: ${{ always() }} | |
run: | | |
tox --skip-env minimal-dependencies -- --nbval-lax --current-env |