Skip to content

Commit 7c04d3b

Browse files
authored
Avoid duplicate test runs in CI (#295)
Tox is running the tests for every Python instance listed in tox.ini when CI should just be calling pytest.
1 parent 8458230 commit 7c04d3b

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

.github/workflows/ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ jobs:
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131

32-
- name: Install Python dependencies
33-
run: pip install build
32+
- run: pip install build
3433

3534
- name: Install wpiformat
3635
run: |
@@ -39,15 +38,14 @@ jobs:
3938
pip install dist/*.whl
4039
shell: bash
4140

42-
- name: Install test dependencies
43-
run: pip install tox
41+
- run: pip install pytest
4442

4543
- name: Run unit tests
4644
run: |
4745
git config --global user.email "[email protected]"
4846
git config --global user.name "Your Name"
4947
cd wpiformat
50-
tox
48+
pytest
5149
5250
- name: wpiformat - whole repo
5351
run: |

wpiformat/tox.ini

-12
This file was deleted.

0 commit comments

Comments
 (0)