Skip to content

Commit

Permalink
update environments to test
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorMacBride committed Nov 6, 2024
1 parent 17facab commit 668b09c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 25 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,29 @@ jobs:
- ghostscript
- inkscape
envs: |
# Test oldest NEP 29 configurations
- linux: py39-test-mpl33
- macos: py39-test-mpl33
- windows: py39-test-mpl33
# Test oldest non-NEP 29 configurations
- linux: py36-test-mpl20
runs-on: ubuntu-20.04
- macos: py36-test-mpl20
- windows: py36-test-mpl20
# Test oldest SPEC 0 configurations
- linux: py311-test-mpl37
- macos: py311-test-mpl37
- windows: py311-test-mpl37
# Test oldest non-SPEC 0 configurations
- linux: py38-test-mpl22
- macos: py37-test-mpl22
- windows: py38-test-mpl22
# Test newest configurations
- linux: py313-test-mpl39
- macos: py313-test-mpl39
- windows: py313-test-mpl39
# Test intermediate SPEC 0 configurations on Linux
- linux: py312-test-mpl37
# - linux: py311-test-mpl38
- linux: py312-test-mpl38
- macos: py312-test-mpl38
- windows: py312-test-mpl38
# Test intermediate NEP 29 configurations on Linux
- linux: py39-test-mpl38
- linux: py310-test-mpl38
- linux: py310-test-mpl35
- linux: py311-test-mpl36
- linux: py311-test-mpl37
- linux: py313-test-mpl38
- linux: py311-test-mpl39
# - linux: py312-test-mpl39
- linux: py313-test-mpl39
# Test different versions of pytest
- linux: py312-test-mpldev-pytestdev
- linux: py313-test-mpldev-pytestdev
- linux: py311-test-mpl37-pytest74
- linux: py39-test-mpl33-pytest62
- linux: py38-test-mpl31-pytest54
coverage: 'codecov'
Expand All @@ -57,7 +59,5 @@ jobs:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
test_command: pytest $GITHUB_WORKSPACE/tests; pytest --mpl $GITHUB_WORKSPACE/tests
# Remove python-version when python-dateutil >2.8.2
python-version: "3.11"
secrets:
pypi_token: ${{ secrets.pypi_password }}
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ docs =
sphinx
mpl_sphinx_theme>=3.6.0.dev0
sphinx_design
matplotlib==3.6

[tool:pytest]
testpaths = tests
Expand Down
2 changes: 1 addition & 1 deletion tests/subtests/subtest/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ filterwarnings =
error
ignore:distutils Version classes are deprecated
ignore:the imp module is deprecated in favour of importlib
ignore:Auto-close\(\)ing of figures upon backend switching is deprecated:matplotlib._api.deprecation.MatplotlibDeprecationWarning
ignore:Auto-close\(\)ing of figures upon backend switching is deprecated
2 changes: 1 addition & 1 deletion tests/test_pytest_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def test_format_{file_format}():
assert len(hash_data[f"test_formats.test_format_{file_format}"]) == 64
if not passes:
hash_data[f"test_formats.test_format_{file_format}"] = (
"d1ff" + hash_data[f"test_formats.test_format_{file_format}"][4:]
"d1ff" + hash_data[f"test_formats.test_format_{file_format}"][4:]
)
tmp_hash_library.write_text(json.dumps(hash_data))

Expand Down
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,22 @@ setenv =
changedir = .tmp/{envname}
description = run tests
deps =
py312: git+https://github.com/dateutil/dateutil.git#egg=python-dateutil
mpl20: matplotlib==2.0.*
mpl20: nose
mpl21: matplotlib==2.1.*
mpl22: matplotlib==2.2.*
mpl22: numpy<2
mpl30: matplotlib==3.0.*
mpl31: matplotlib==3.1.*
mpl31: numpy<2
mpl32: matplotlib==3.2.*
mpl33: matplotlib==3.3.*
mpl33: numpy<2
mpl34: matplotlib==3.4.*
mpl35: matplotlib==3.5.*
mpl36: matplotlib==3.6.*
mpl37: matplotlib==3.7.*
mpl38: matplotlib==3.8.*
mpl39: matplotlib==3.9.*
mpldev: matplotlib>=0.0.dev0
pytest54: pytest==5.4.*
pytest60: pytest==6.0.*
Expand All @@ -43,6 +45,10 @@ deps =
pytest72: pytest==7.2.*
pytest73: pytest==7.3.*
pytest74: pytest==7.4.*
pytest80: pytest==8.0.*
pytest81: pytest==8.1.*
pytest82: pytest==8.2.*
pytest83: pytest==8.3.*
pytestdev: git+https://github.com/pytest-dev/pytest.git#egg=pytest
extras =
test
Expand Down

0 comments on commit 668b09c

Please sign in to comment.