Skip to content

Commit 5475562

Browse files
authored
add --durations flag to pytest in CI workflow (#1029)
1 parent 87d20f1 commit 5475562

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/tests+artifacts+pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
pip install -e .
4545
pip install -r test-time-requirements.txt
4646
pip install pytest-cov
47-
pytest -We tests/unit_tests --cov-report=xml --cov=PySDM
47+
pytest --durations=10 -We tests/unit_tests --cov-report=xml --cov=PySDM
4848
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4949
uses: codecov/codecov-action@v2
5050
with:
@@ -140,7 +140,7 @@ jobs:
140140

141141
- env:
142142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143-
run: pytest -p no:unraisableexception -We
143+
run: pytest --durations=10 -p no:unraisableexception -We
144144

145145
# - if: ${{ failure() }}
146146
# uses: mxschmitt/action-tmate@v3

0 commit comments

Comments
 (0)