From 398185aa70a4d4a3c2263031353fdecb5016c093 Mon Sep 17 00:00:00 2001 From: Scott Todd Date: Wed, 27 Nov 2024 09:46:36 -0800 Subject: [PATCH] Add `--durations` to some `pytest` commands in CI workflows. --- .github/workflows/ci-libshortfin.yml | 2 +- .github/workflows/ci-sharktank.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-libshortfin.yml b/.github/workflows/ci-libshortfin.yml index 33a6df72b..1c1ec682d 100644 --- a/.github/workflows/ci-libshortfin.yml +++ b/.github/workflows/ci-libshortfin.yml @@ -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 diff --git a/.github/workflows/ci-sharktank.yml b/.github/workflows/ci-sharktank.yml index 1d3960b43..8aabc8082 100644 --- a/.github/workflows/ci-sharktank.yml +++ b/.github/workflows/ci-sharktank.yml @@ -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: @@ -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