Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: run tests with pytest < 8; test ndimage not linalg #109

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.8']
python-version: ['3.10']
os: [ubuntu-latest]
pytest: ['"pytest<8.0"']
# pip cache paths
include:
- os: ubuntu-latest
Expand All @@ -40,7 +41,7 @@ jobs:
# Install dependencies
- name: Install
run: |
python -m pip install numpy scipy matplotlib pytest
python -m pip install numpy scipy matplotlib ${{matrix.pytest}}
python -m pip install -e .

- name: Self-test
Expand All @@ -61,7 +62,8 @@ jobs:

- name: Run testmod a scipy submodule -- Public API onlly
run: |
python -c'from scipy import linalg; from scpdt import testmod; testmod(linalg, verbose=True, strategy="api")'
python -mpip install pooch
python -c'from scipy import ndimage; from scpdt import testmod; testmod(ndimage, verbose=True, strategy="api")'

- name: Test pytest plugin
# This test will fail in a venv where scpdt has not been installed and the plugin has not been activated
Expand Down
Loading