@@ -19,28 +19,10 @@ jobs:
19
19
- ' 3.8'
20
20
- ' 3.9'
21
21
- ' 3.10'
22
- pytest-version :
23
- - 4
24
- - 5
25
- - 6
26
- exclude :
27
- # pytest >= 5.x.x doesn't support Python 2.7
28
- - os : ubuntu-latest
29
- python-version : 2.7
30
- pytest-version : 5
31
- - os : ubuntu-latest
32
- python-version : 2.7
33
- pytest-version : 6
34
- - os : windows-latest
35
- python-version : 2.7
36
- pytest-version : 5
37
- - os : windows-latest
38
- python-version : 2.7
39
- pytest-version : 6
40
22
41
23
runs-on : ${{ matrix.os }}
42
24
43
- name : ${{ matrix.os }}, Python ${{ matrix.python-version }}, pytest ${{ matrix.pytest-version }}
25
+ name : ${{ matrix.os }}, Python ${{ matrix.python-version }}
44
26
steps :
45
27
- uses : actions/checkout@v3
46
28
@@ -54,11 +36,36 @@ jobs:
54
36
python -m pip install --upgrade pip
55
37
pip install tox tox-gh-actions
56
38
57
- - name : Run test
39
+ - name : Run tests with PyTest 4
58
40
run : tox
41
+ if : ${{ matrix.python-version != '3.10' }}
59
42
env :
60
43
PLATFORM : ${{ matrix.os }}
61
- PYTEST_MAJOR_VERSION : ${{ matrix.pytest-version }}
44
+ PYTEST_MAJOR_VERSION : 4
45
+ PYTEST_PLUGINS : pytest_github_actions_annotate_failures
46
+
47
+ - name : Run tests with PyTest 5
48
+ run : tox
49
+ if : ${{ matrix.python-version != '2.7' && matrix.python-version != '3.10' }}
50
+ env :
51
+ PLATFORM : ${{ matrix.os }}
52
+ PYTEST_MAJOR_VERSION : 5
53
+ PYTEST_PLUGINS : pytest_github_actions_annotate_failures
54
+
55
+ - name : Run tests with PyTest 6
56
+ run : tox
57
+ if : ${{ matrix.python-version != '2.7' }}
58
+ env :
59
+ PLATFORM : ${{ matrix.os }}
60
+ PYTEST_MAJOR_VERSION : 6
61
+ PYTEST_PLUGINS : pytest_github_actions_annotate_failures
62
+
63
+ - name : Run tests with PyTest 7
64
+ run : tox
65
+ if : ${{ matrix.python-version != '2.7' }}
66
+ env :
67
+ PLATFORM : ${{ matrix.os }}
68
+ PYTEST_MAJOR_VERSION : 7
62
69
PYTEST_PLUGINS : pytest_github_actions_annotate_failures
63
70
64
71
post-test :
0 commit comments