From 4f9e13c000e3b54f04bb625ec156295a2728beaa Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 24 Oct 2025 12:13:19 +1030 Subject: [PATCH] GitHub: add --durations=10 to pytest runs. This allows us to show what tests are slowest, by showing the duration for anything which took 10 seconds or longer. Signed-off-by: Rusty Russell --- .github/workflows/ci.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 78fc45adc..31c1e70cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -89,7 +89,7 @@ jobs: - name: Check source env: VALGRIND: 0 - PYTEST_OPTS: --timeout=1200 + PYTEST_OPTS: --timeout=1200 --durations=10 run: | uv run make check-source BASE_REF="origin/${{ github.base_ref }}" - name: Check Generated Files have been updated @@ -241,7 +241,7 @@ jobs: timeout-minutes: 120 env: RUST_PROFILE: release # Has to match the one in the compile step - PYTEST_OPTS: --timeout=1200 + PYTEST_OPTS: --timeout=1200 --durations=10 needs: - compile strategy: @@ -350,7 +350,7 @@ jobs: env: RUST_PROFILE: release # Has to match the one in the compile step CFG: compile-gcc - PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 + PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10 needs: - compile strategy: @@ -421,7 +421,7 @@ jobs: RUST_PROFILE: release SLOW_MACHINE: 1 TEST_DEBUG: 1 - PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 + PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10 needs: - compile strategy: @@ -489,7 +489,7 @@ jobs: env: VALGRIND: 0 GENERATE_EXAMPLES: 1 - PYTEST_OPTS: --timeout=1200 + PYTEST_OPTS: --timeout=1200 --durations=10 TEST_NETWORK: regtest needs: - compile @@ -528,7 +528,7 @@ jobs: timeout-minutes: 120 env: RUST_PROFILE: release # Has to match the one in the compile step - PYTEST_OPTS: --timeout=1200 + PYTEST_OPTS: --timeout=1200 --durations=10 needs: - compile strategy: