Skip to content

Commit a21db20

Browse files
committed
run test with tox
1 parent bfa5db8 commit a21db20

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,11 @@ jobs:
1818
- '3.7'
1919
- '3.8'
2020
- '3.9'
21-
pytest-version:
22-
- 4.6.11
23-
- 5.4.3
24-
- 6.2.4
25-
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.4.3
31-
- os: ubuntu-latest
32-
python-version: 2.7
33-
pytest-version: 6.2.4
34-
- os: windows-latest
35-
python-version: 2.7
36-
pytest-version: 5.4.3
37-
- os: windows-latest
38-
python-version: 2.7
39-
pytest-version: 6.2.4
21+
# TODO: test with specific major version of pytest
4022

4123
runs-on: ${{ matrix.os }}
4224

43-
name: ${{ matrix.os }}, Python ${{ matrix.python-version }}, pytest ${{ matrix.pytest-version }}
25+
name: ${{ matrix.os }}, Python ${{ matrix.python-version }}
4426
steps:
4527
- uses: actions/checkout@v2
4628

@@ -53,12 +35,13 @@ jobs:
5335
run: |
5436
python -m pip install --upgrade pip
5537
pip install -r requirements.txt
56-
pip install pytest==${{ matrix.pytest-version }}
38+
pip install tox tox-gh-actions
5739
5840
- name: Install itself
5941
run: python setup.py install
6042

61-
- run: pytest
43+
- name: Run test
44+
run: tox
6245
env:
6346
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
6447

0 commit comments

Comments
 (0)