Skip to content

Commit 8f95509

Browse files
Don't run tests twice. Also use the virtualenv syntax for running the tools.
1 parent 6dd252b commit 8f95509

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/python-package.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ jobs:
4545
- name: Run tests
4646
run: |
4747
if [ "${{ matrix.python-version }}" == "3.13" ]; then # workaround for TheKevJames/coveralls-python#523
48-
python -m pytest --no-cov src
48+
python -m coverage run -m pytest --no-cov src
4949
else
50+
python -m coverage erase
5051
python -m pytest src
51-
coverage erase
52-
pytest --cov=src/pyff
52+
python -m coverage run -m pytest --cov=src/pyff
5353
mv .coverage .coverage.1
54-
coverage combine
54+
python -m coverage combine
5555
fi
5656
5757
#make typecheck

0 commit comments

Comments
 (0)