Skip to content

Commit 5d18c28

Browse files
committed
ENH: Test multiple Python versions in CI
1 parent 9f66fa1 commit 5d18c28

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/notebook-test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,29 @@ jobs:
66
run:
77
runs-on: ubuntu-latest
88
name: Test notebooks with nbmake
9+
strategy:
10+
matrix:
11+
python-version: ['3.7', '3.8', '3.9', '3.10']
912
steps:
1013
- uses: actions/checkout@v3
1114

12-
- uses: actions/setup-python@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v3
1317
with:
14-
python-version: '3.7'
18+
python-version: ${{ matrix.python-version }}
19+
1520
- uses: actions/setup-java@v3
1621
with:
1722
java-version: '8'
1823
distribution: 'zulu'
24+
1925
- name: Install test dependencies
2026
run: |
2127
python3 -m pip install --upgrade pip
2228
python3 -m pip install -e ".[test]"
2329
python3 -m pip install pyimagej
2430
python3 -c "import imagej; ij = imagej.init('2.5.0'); print(ij.getVersion())"
31+
2532
- name: Test notebooks
2633
run: |
2734
pytest --nbmake --nbmake-timeout=3000 examples/*.ipynb examples/integrations/dask/*.ipynb

0 commit comments

Comments
 (0)