Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- defaults
dependencies:
- pip
- numpy >=1.15.4
- numpy >=1.20.3
- scipy >=1.4.0
- matplotlib-base>=3.3.0
- matplotlib-base>=3.6.0
- numpydoc
5 changes: 3 additions & 2 deletions .github/environment-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ channels:
- defaults
dependencies:
- pip
- numpy ==1.15.4
- numpy ==1.20.3
- scipy ==1.4.0
- matplotlib-base==3.3.0
- matplotlib-base==3.6.0
- pytest
- pytest-cov
- pytest-mpl
- pillow==9.0.0 # needed for test compatibilty and numpy 1.20.3
4 changes: 2 additions & 2 deletions .github/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ channels:
- defaults
dependencies:
- pip
- numpy >=1.15.4
- numpy >=1.20.3
- scipy >=1.4.0
- matplotlib-base>=3.3.0
- matplotlib-base>=3.6.0
- pytest
- pytest-cov
- pytest-mpl
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
channel-priority: [strict]
envfile: [".github/environment.yml"]
include:
Expand All @@ -30,7 +30,7 @@ jobs:
os: ubuntu-latest
channel-priority: flexible
- os: ubuntu-latest
python-version: "3.7"
python-version: "3.8"
envfile: ".github/environment-minimal.yml"
channel-priority: "flexible"
name: "Minimal dependencies"
Expand Down Expand Up @@ -76,9 +76,17 @@ jobs:

- name: Run unit tests
shell: bash -l {0}
run: pytest
run: pytest --mpl-results-path=mpl_image_results/
working-directory: tests

- name: Upload image comparison failures if any
if: failure() && hashFiles('tests/mpl_image_results/**') != ''
uses: actions/upload-artifact@v4
with:
name: mpl-test-results-${{ runner.os }}--${{ runner.arch }}--${{ matrix.python-version }}
path: tests/mpl_image_results/
retention-days: 7

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
Expand Down
Loading
Loading