@@ -20,25 +20,26 @@ jobs:
20
20
python-version: ['3.7', '3.8', '3.9']
21
21
steps:
22
22
- uses: actions/checkout@v2
23
- - name: Set up Python ${{ matrix.python-version }}
24
- uses: actions/setup-python@v2
23
+ - uses: ./.github/actions/install-python-and-package
25
24
with:
26
25
python-version: ${{ matrix.python-version }}
27
- - name: Python info
28
- shell: bash -l {0}
29
- run: |
30
- which python3
31
- python3 --version
32
- - name: Upgrade pip and install dependencies
33
- run: |
34
- python3 -m pip install --upgrade pip setuptools
35
- python3 -m pip install .[dev,publishing]
36
26
- name: Run unit tests
37
27
run: pytest -v
38
- - name: Run tutorial notebooks
39
- run: pytest --nbmake tutorials
40
28
- name: Verify that we can build the package
41
29
run: python3 setup.py sdist bdist_wheel
42
30
- name: Build documentation
43
31
run: make coverage doctest html
44
32
working-directory: docs
33
+
34
+ notebooks:
35
+ name: Run notebooks on (3.9, ${{ matrix.os }})
36
+ runs-on: ${{ matrix.os }}
37
+ strategy:
38
+ fail-fast: false
39
+ matrix:
40
+ os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
41
+ steps:
42
+ - uses: actions/checkout@v2
43
+ - uses: ./.github/actions/install-python-and-package
44
+ - name: Run tutorial notebooks
45
+ run: pytest --nbmake tutorials
0 commit comments