File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,25 +41,25 @@ jobs:
4141 - uses : astral-sh/setup-uv@v8.2.0
4242
4343 - name : Install tox
44- run : uv tool install --with tox-gh-actions --with tox- uv tox
44+ run : uv tool install --with tox-uv tox
4545
4646 - name : Run tests with PyTest 9
4747 run : tox
4848 env :
49- PYTEST_MAJOR_VERSION : 9
49+ TOXENV : ${{ matrix.python-version }}-pytest- 9
5050 PYTEST_PLUGINS : pytest_github_actions_annotate_failures,rerunfailures,xdist
5151
5252 - name : Run tests with PyTest 8
5353 run : tox
5454 env :
55- PYTEST_MAJOR_VERSION : 8
55+ TOXENV : ${{ matrix.python-version }}-pytest- 8
5656 PYTEST_PLUGINS : pytest_github_actions_annotate_failures,rerunfailures,xdist
5757
5858 - name : Run tests with PyTest 7
5959 run : tox
6060 if : runner.os != 'Windows'
6161 env :
62- PYTEST_MAJOR_VERSION : 7
62+ TOXENV : ${{ matrix.python-version }}-pytest- 7
6363 PYTEST_PLUGINS : pytest_github_actions_annotate_failures,rerunfailures,xdist
6464
6565 post-test :
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ requires = [
2+ " tox>=4.49" ,
3+ " tox-uv" ,
4+ ]
5+ env_list = [
6+ { product = [
7+ { prefix = " py3" , start = 10 },
8+ [" pytest" ],
9+ { pytestver = [" 7" , " 8" , " 9" ] },
10+ ] },
11+ ]
12+
13+ [env_run_base ]
14+ description = " run tests with Python {py_dot_ver} and pytest {factor:pytestver}"
15+ deps = [
16+ { replace = " if" , condition = " factor['9']" , then = [
17+ " pytest>=9.0.0,<10.0.0" ,
18+ ], extend = true },
19+ { replace = " if" , condition = " factor['8']" , then = [
20+ " pytest>=8.0.0,<9.0.0" ,
21+ ], extend = true },
22+ { replace = " if" , condition = " factor['7']" , then = [
23+ " pytest>=7.0.0,<8.0.0" ,
24+ " pytest-rerunfailures<16.2" ,
25+ ], extend = true },
26+ ]
27+ dependency_groups = [" test" ]
28+ commands = [
29+ [
30+ " {envpython}" ,
31+ " -m" ,
32+ " pytest" ,
33+ { replace = " posargs" , default = [], extend = true },
34+ ],
35+ ]
You can’t perform that action at this time.
0 commit comments