Skip to content

Commit

Permalink
Add --durations to some pytest commands in CI workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Nov 27, 2024
1 parent 5aae18d commit 398185a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-libshortfin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ jobs:
working-directory: ${{ env.LIBSHORTFIN_DIR }}
run: |
ctest --timeout 30 --output-on-failure --test-dir build
pytest -s
pytest -s --durations=10
5 changes: 3 additions & 2 deletions .github/workflows/ci-sharktank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Run sharktank tests
if: ${{ !cancelled() }}
run: |
pytest -n 4 sharktank/
pytest -n 4 sharktank/ --durations=10
test_with_data:
Expand Down Expand Up @@ -128,4 +128,5 @@ jobs:
run: |
pytest \
--with-t5-data \
sharktank/tests/models/t5/t5_test.py
sharktank/tests/models/t5/t5_test.py \
--durations=0

0 comments on commit 398185a

Please sign in to comment.