Skip to content

Commit 2ccc392

Browse files
Test with Pytest 9
1 parent 6e62d3f commit 2ccc392

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ 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+
env:
51+
PYTEST_MAJOR_VERSION: 9
52+
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
53+
4854
- name: Run tests with PyTest 8
4955
run: tox
5056
env:

tox.ini

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

55
[gh-actions]
66
python =
@@ -17,6 +17,7 @@ PYTEST_MAJOR_VERSION =
1717
6: pytest6
1818
7: pytest7
1919
8: pytest8
20+
9: pytest9
2021

2122
[testenv]
2223
min_version = 4.22.0
@@ -25,5 +26,6 @@ deps =
2526
pytest6: pytest>=6.0.0,<7.0.0
2627
pytest7: pytest>=7.0.0,<8.0.0
2728
pytest8: pytest>=8.0.0,<9.0.0
29+
pytest9: pytest>=9.0.0,<10.0.0
2830

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

0 commit comments

Comments
 (0)