Skip to content

Commit 0619a82

Browse files
authored
Merge pull request #109 from ev-br/fix_ci
CI: run tests with pytest < 8; test ndimage not linalg
2 parents 041e082 + b7bbfd7 commit 0619a82

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/pip.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
python-version: ['3.8']
18+
python-version: ['3.10']
1919
os: [ubuntu-latest]
20+
pytest: ['"pytest<8.0"']
2021
# pip cache paths
2122
include:
2223
- os: ubuntu-latest
@@ -40,7 +41,7 @@ jobs:
4041
# Install dependencies
4142
- name: Install
4243
run: |
43-
python -m pip install numpy scipy matplotlib pytest
44+
python -m pip install numpy scipy matplotlib ${{matrix.pytest}}
4445
python -m pip install -e .
4546
4647
- name: Self-test
@@ -61,7 +62,8 @@ jobs:
6162
6263
- name: Run testmod a scipy submodule -- Public API onlly
6364
run: |
64-
python -c'from scipy import linalg; from scpdt import testmod; testmod(linalg, verbose=True, strategy="api")'
65+
python -mpip install pooch
66+
python -c'from scipy import ndimage; from scpdt import testmod; testmod(ndimage, verbose=True, strategy="api")'
6567
6668
- name: Test pytest plugin
6769
# This test will fail in a venv where scpdt has not been installed and the plugin has not been activated

0 commit comments

Comments
 (0)