Skip to content

Commit 80de000

Browse files
authored
Merge pull request #197 from ocefpaf/pytest-mpl
Use pytest-mpl to check the images
2 parents 3c9b52d + d713bad commit 80de000

35 files changed

+246
-194
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ jobs:
3939
shell: bash -l {0}
4040
run: |
4141
micromamba activate TEST
42-
pytest --verbose tests
42+
pytest -s -rxs -vv tests/ --mpl --mpl-generate-summary=html \
43+
--mpl-results-path="windrose_test_output-${{ matrix.os }}-${{ matrix.python-version }}"

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ nosetests.xml
4343
coverage.xml
4444
*,cover
4545
.pytest_cache/
46-
tests/**/*png
4746

4847
# Translations
4948
*.mo

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pylint
1717
pytest
1818
pytest-cov
1919
pytest-flake8
20+
pytest-mpl
2021
pytest-sugar
2122
setuptools_scm
2223
sphinx

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
matplotlib
1+
matplotlib>=3,<3.6.0
22
numpy
33
pandas
44
scipy

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ classifiers =
3131
zip_safe = True
3232
include_package_data = True
3333
install_requires =
34-
matplotlib >=3
34+
matplotlib >=3,<3.6.0
3535
numpy >=1.19
3636
python_requires = >=3.6
3737
packages = find:

tests/output/df/empty

Whitespace-only changes.

tests/output/df/test_bar.png

133 KB
Loading

tests/output/df/test_box.png

141 KB
Loading

tests/output/df/test_contour.png

146 KB
Loading

tests/output/df/test_contourf.png

98.7 KB
Loading

0 commit comments

Comments
 (0)