Skip to content

Commit 81ffb1d

Browse files
Add 90 minute limit for tests (#5851)
Occasionally a test will get stuck and run for 6 hours until Github cancels the workflow. This reduces the timeout to 90 minutes to not waste resources. Pybind11's tests seem to run in 30 minutes so this should be plenty of time.
1 parent 8ed0dab commit 81ffb1d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ jobs:
179179

180180
name: "🐍 ${{ matrix.python-version }} • ${{ matrix.runs-on }} • x64 inplace C++14"
181181
runs-on: ${{ matrix.runs-on }}
182+
timeout-minutes: 90
182183

183184
steps:
184185
- uses: actions/checkout@v5
@@ -277,6 +278,7 @@ jobs:
277278

278279
name: "🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64"
279280
runs-on: ubuntu-latest
281+
timeout-minutes: 90
280282

281283
steps:
282284
- uses: actions/checkout@v5
@@ -364,6 +366,7 @@ jobs:
364366

365367
name: "🐍 3 • Clang ${{ matrix.clang }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}"
366368
container: "silkeh/clang:${{ matrix.clang }}${{ matrix.container_suffix }}"
369+
timeout-minutes: 90
367370

368371
steps:
369372
- uses: actions/checkout@v5
@@ -401,6 +404,7 @@ jobs:
401404
runs-on: ubuntu-latest
402405
name: "🐍 3.10 • CUDA 12.2 • Ubuntu 22.04"
403406
container: nvidia/cuda:12.2.0-devel-ubuntu22.04
407+
timeout-minutes: 90
404408

405409
steps:
406410
- uses: actions/checkout@v5
@@ -468,6 +472,7 @@ jobs:
468472
if: github.event.pull_request.draft == false
469473
runs-on: ubuntu-22.04
470474
name: "🐍 3 • NVHPC 23.5 • C++17 • x64"
475+
timeout-minutes: 90
471476

472477
env:
473478
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
@@ -532,6 +537,7 @@ jobs:
532537

533538
name: "🐍 3 • GCC ${{ matrix.gcc }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}"
534539
container: "gcc:${{ matrix.gcc }}"
540+
timeout-minutes: 90
535541

536542
steps:
537543
- uses: actions/checkout@v5
@@ -593,6 +599,7 @@ jobs:
593599
icc:
594600
if: github.event.pull_request.draft == false
595601
runs-on: ubuntu-22.04
602+
timeout-minutes: 90
596603

597604
name: "🐍 3 • ICC latest • x64"
598605

@@ -707,6 +714,7 @@ jobs:
707714

708715
name: "🐍 3 • ${{ matrix.container }} • x64"
709716
container: "${{ matrix.container }}"
717+
timeout-minutes: 90
710718

711719
steps:
712720
- name: Latest actions/checkout
@@ -765,6 +773,7 @@ jobs:
765773
name: "🐍 3.9 • Debian • x86 • Install"
766774
runs-on: ubuntu-latest
767775
container: i386/debian:bullseye
776+
timeout-minutes: 90
768777

769778
steps:
770779
- uses: actions/checkout@v1 # v1 is required to run inside docker
@@ -809,6 +818,7 @@ jobs:
809818
if: github.event.pull_request.draft == false
810819
name: "Documentation build test"
811820
runs-on: ubuntu-latest
821+
timeout-minutes: 90
812822

813823
steps:
814824
- uses: actions/checkout@v5
@@ -855,6 +865,7 @@ jobs:
855865

856866
name: "🐍 ${{ matrix.python }} • MSVC 2022 • x86 ${{ matrix.args }}"
857867
runs-on: windows-2022
868+
timeout-minutes: 90
858869

859870
steps:
860871
- uses: actions/checkout@v5
@@ -907,6 +918,7 @@ jobs:
907918

908919
name: "🐍 ${{ matrix.python }} • MSVC 2022 (Debug) • x86 ${{ matrix.args }}"
909920
runs-on: windows-2022
921+
timeout-minutes: 90
910922

911923
steps:
912924
- uses: actions/checkout@v5
@@ -955,6 +967,7 @@ jobs:
955967

956968
name: "🐍 ${{ matrix.python }} • MSVC 2022 C++20 • x64"
957969
runs-on: windows-2022
970+
timeout-minutes: 90
958971

959972
steps:
960973
- uses: actions/checkout@v5
@@ -1012,6 +1025,7 @@ jobs:
10121025
if: github.event.pull_request.draft == false
10131026
name: "🐍 3 • windows-latest • ${{ matrix.sys }}"
10141027
runs-on: windows-latest
1028+
timeout-minutes: 90
10151029
defaults:
10161030
run:
10171031
shell: msys2 {0}
@@ -1125,6 +1139,7 @@ jobs:
11251139
python: ['3.10']
11261140

11271141
runs-on: "${{ matrix.os }}"
1142+
timeout-minutes: 90
11281143

11291144
name: "🐍 ${{ matrix.python }} • ${{ matrix.os }} • clang-latest"
11301145

.github/workflows/reusable-standard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
standard:
2929
name: 🧪
3030
runs-on: ${{ inputs.runs-on }}
31+
timeout-minutes: 90
3132

3233
steps:
3334
- uses: actions/checkout@v5

0 commit comments

Comments
 (0)