Skip to content

Commit ea87d77

Browse files
Test with Pytest 9
Signed-off-by: Edgar Ramírez Mondragón <[email protected]>
1 parent 3c82f58 commit ea87d77

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ jobs:
4545
- name: Install tox
4646
run: uv tool install --with tox-gh-actions --with tox-uv tox
4747

48+
- name: Run tests with PyTest 9
49+
run: tox
50+
if: matrix.python-version != '3.8' && matrix.python-version != '3.9'
51+
env:
52+
PYTEST_MAJOR_VERSION: 9
53+
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
54+
4855
- name: Run tests with PyTest 8
4956
run: tox
5057
env:

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tox]
22
envlist =
33
py{38,39,310,311,312,313,314}-pytest{7,8}
4+
py{310,311,312,313,314}-pytest9
45

56
[gh-actions]
67
python =
@@ -16,12 +17,14 @@ python =
1617
PYTEST_MAJOR_VERSION =
1718
7: pytest7
1819
8: pytest8
20+
9: pytest9
1921

2022
[testenv]
2123
min_version = 4.22.0
2224
groups = test
2325
deps =
2426
pytest7: pytest>=7.0.0,<8.0.0
2527
pytest8: pytest>=8.0.0,<9.0.0
28+
pytest9: pytest>=9.0.0,<10.0.0
2629

2730
commands = {envpython} -m pytest {posargs}

0 commit comments

Comments
 (0)