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.
This commit is contained in:
gentlegiantJGC
2025-09-27 20:53:47 +01:00
committed by GitHub
parent 8ed0dab67f
commit 81ffb1d5cc
2 changed files with 16 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ jobs:
name: "🐍 ${{ matrix.python-version }} • ${{ matrix.runs-on }} • x64 inplace C++14" name: "🐍 ${{ matrix.python-version }} • ${{ matrix.runs-on }} • x64 inplace C++14"
runs-on: ${{ matrix.runs-on }} runs-on: ${{ matrix.runs-on }}
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -277,6 +278,7 @@ jobs:
name: "🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64" name: "🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64"
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -364,6 +366,7 @@ jobs:
name: "🐍 3 • Clang ${{ matrix.clang }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}" name: "🐍 3 • Clang ${{ matrix.clang }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}"
container: "silkeh/clang:${{ matrix.clang }}${{ matrix.container_suffix }}" container: "silkeh/clang:${{ matrix.clang }}${{ matrix.container_suffix }}"
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -401,6 +404,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: "🐍 3.10 • CUDA 12.2 • Ubuntu 22.04" name: "🐍 3.10 • CUDA 12.2 • Ubuntu 22.04"
container: nvidia/cuda:12.2.0-devel-ubuntu22.04 container: nvidia/cuda:12.2.0-devel-ubuntu22.04
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -468,6 +472,7 @@ jobs:
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
name: "🐍 3 • NVHPC 23.5 • C++17 • x64" name: "🐍 3 • NVHPC 23.5 • C++17 • x64"
timeout-minutes: 90
env: env:
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND # tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
@@ -532,6 +537,7 @@ jobs:
name: "🐍 3 • GCC ${{ matrix.gcc }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}" name: "🐍 3 • GCC ${{ matrix.gcc }} • C++${{ matrix.std }} • x64${{ matrix.cxx_flags && ' • cxx_flags' || '' }}"
container: "gcc:${{ matrix.gcc }}" container: "gcc:${{ matrix.gcc }}"
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -593,6 +599,7 @@ jobs:
icc: icc:
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
timeout-minutes: 90
name: "🐍 3 • ICC latest • x64" name: "🐍 3 • ICC latest • x64"
@@ -707,6 +714,7 @@ jobs:
name: "🐍 3 • ${{ matrix.container }} • x64" name: "🐍 3 • ${{ matrix.container }} • x64"
container: "${{ matrix.container }}" container: "${{ matrix.container }}"
timeout-minutes: 90
steps: steps:
- name: Latest actions/checkout - name: Latest actions/checkout
@@ -765,6 +773,7 @@ jobs:
name: "🐍 3.9 • Debian • x86 • Install" name: "🐍 3.9 • Debian • x86 • Install"
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: i386/debian:bullseye container: i386/debian:bullseye
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v1 # v1 is required to run inside docker - uses: actions/checkout@v1 # v1 is required to run inside docker
@@ -809,6 +818,7 @@ jobs:
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
name: "Documentation build test" name: "Documentation build test"
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -855,6 +865,7 @@ jobs:
name: "🐍 ${{ matrix.python }} • MSVC 2022 • x86 ${{ matrix.args }}" name: "🐍 ${{ matrix.python }} • MSVC 2022 • x86 ${{ matrix.args }}"
runs-on: windows-2022 runs-on: windows-2022
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -907,6 +918,7 @@ jobs:
name: "🐍 ${{ matrix.python }} • MSVC 2022 (Debug) • x86 ${{ matrix.args }}" name: "🐍 ${{ matrix.python }} • MSVC 2022 (Debug) • x86 ${{ matrix.args }}"
runs-on: windows-2022 runs-on: windows-2022
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -955,6 +967,7 @@ jobs:
name: "🐍 ${{ matrix.python }} • MSVC 2022 C++20 • x64" name: "🐍 ${{ matrix.python }} • MSVC 2022 C++20 • x64"
runs-on: windows-2022 runs-on: windows-2022
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
@@ -1012,6 +1025,7 @@ jobs:
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
name: "🐍 3 • windows-latest • ${{ matrix.sys }}" name: "🐍 3 • windows-latest • ${{ matrix.sys }}"
runs-on: windows-latest runs-on: windows-latest
timeout-minutes: 90
defaults: defaults:
run: run:
shell: msys2 {0} shell: msys2 {0}
@@ -1125,6 +1139,7 @@ jobs:
python: ['3.10'] python: ['3.10']
runs-on: "${{ matrix.os }}" runs-on: "${{ matrix.os }}"
timeout-minutes: 90
name: "🐍 ${{ matrix.python }} • ${{ matrix.os }} • clang-latest" name: "🐍 ${{ matrix.python }} • ${{ matrix.os }} • clang-latest"

View File

@@ -28,6 +28,7 @@ jobs:
standard: standard:
name: 🧪 name: 🧪
runs-on: ${{ inputs.runs-on }} runs-on: ${{ inputs.runs-on }}
timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5