Skip to content

Commit 4f9e13c

Browse files
committed
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 <rusty@rustcorp.com.au>
1 parent 82fff3c commit 4f9e13c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: Check source
9090
env:
9191
VALGRIND: 0
92-
PYTEST_OPTS: --timeout=1200
92+
PYTEST_OPTS: --timeout=1200 --durations=10
9393
run: |
9494
uv run make check-source BASE_REF="origin/${{ github.base_ref }}"
9595
- name: Check Generated Files have been updated
@@ -241,7 +241,7 @@ jobs:
241241
timeout-minutes: 120
242242
env:
243243
RUST_PROFILE: release # Has to match the one in the compile step
244-
PYTEST_OPTS: --timeout=1200
244+
PYTEST_OPTS: --timeout=1200 --durations=10
245245
needs:
246246
- compile
247247
strategy:
@@ -350,7 +350,7 @@ jobs:
350350
env:
351351
RUST_PROFILE: release # Has to match the one in the compile step
352352
CFG: compile-gcc
353-
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800
353+
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10
354354
needs:
355355
- compile
356356
strategy:
@@ -421,7 +421,7 @@ jobs:
421421
RUST_PROFILE: release
422422
SLOW_MACHINE: 1
423423
TEST_DEBUG: 1
424-
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800
424+
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10
425425
needs:
426426
- compile
427427
strategy:
@@ -489,7 +489,7 @@ jobs:
489489
env:
490490
VALGRIND: 0
491491
GENERATE_EXAMPLES: 1
492-
PYTEST_OPTS: --timeout=1200
492+
PYTEST_OPTS: --timeout=1200 --durations=10
493493
TEST_NETWORK: regtest
494494
needs:
495495
- compile
@@ -528,7 +528,7 @@ jobs:
528528
timeout-minutes: 120
529529
env:
530530
RUST_PROFILE: release # Has to match the one in the compile step
531-
PYTEST_OPTS: --timeout=1200
531+
PYTEST_OPTS: --timeout=1200 --durations=10
532532
needs:
533533
- compile
534534
strategy:

0 commit comments

Comments
 (0)