diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c842e9..703500a 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 55f8e1f..afd0a09 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{38,39,310,311,312,313,314}-pytest{7,8} + py{38,39,310,311,312,313,314}-pytest{7,8,9} [gh-actions] python = @@ -16,6 +16,7 @@ python = PYTEST_MAJOR_VERSION = 7: pytest7 8: pytest8 + 9: pytest9 [testenv] min_version = 4.22.0 @@ -23,5 +24,6 @@ groups = test deps = 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}