From c3aa5cc20e4f4bf951238b1b1f591be16a659ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 10 Nov 2025 00:01:26 -0600 Subject: [PATCH] Test with Pytest 9 --- .github/workflows/test.yml | 7 +++++++ tox.ini | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) 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}