diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2af3a4..3a109e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,6 +45,13 @@ jobs: - name: Install tox run: uv tool install --with tox-gh-actions --with tox-uv tox + - name: Run tests with PyTest 9 + run: tox + if: matrix.python-version != '3.8' && matrix.python-version != '3.9' + env: + PYTEST_MAJOR_VERSION: 9 + PYTEST_PLUGINS: pytest_github_actions_annotate_failures + - name: Run tests with PyTest 8 run: tox env: diff --git a/tox.ini b/tox.ini index ad59af8..babf802 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{38,39,310,311,312,313,314}-pytest{6,7,8} + py{38,39,310,311,312,313,314}-pytest{6,7,8,9} [gh-actions] python = @@ -17,6 +17,7 @@ PYTEST_MAJOR_VERSION = 6: pytest6 7: pytest7 8: pytest8 + 9: pytest9 [testenv] min_version = 4.22.0 @@ -25,5 +26,6 @@ deps = pytest6: pytest>=6.0.0,<7.0.0 pytest7: pytest>=7.0.0,<8.0.0 pytest8: pytest>=8.0.0,<9.0.0 + pytest9: pytest>=9.0.0,<10.0.0 commands = {envpython} -m pytest {posargs}