github: Add 30 minute timeout to all jobs

We're getting hit by macOS runner concurrency limits whenever some jobs
get stuck (for example, because of a deadlock).
This commit is contained in:
Pekka Enberg
2025-09-26 17:20:28 +03:00
parent 506908e648
commit f7bf60e856
11 changed files with 29 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ env:
jobs:
configure-strategy:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
outputs:
python-versions: ${{ steps.gen-matrix.outputs.python-versions }}
steps:
@@ -26,6 +27,7 @@ jobs:
test:
needs: configure-strategy
timeout-minutes: 30
strategy:
matrix:
os:
@@ -64,6 +66,7 @@ jobs:
lint:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
steps:
- name: Checkout code
@@ -85,6 +88,7 @@ jobs:
linux:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
defaults:
run:
working-directory: ${{ env.working-directory }}
@@ -112,6 +116,7 @@ jobs:
macos-arm64:
runs-on: macos-14
timeout-minutes: 30
defaults:
run:
working-directory: ${{ env.working-directory }}
@@ -141,6 +146,7 @@ jobs:
sdist:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
defaults:
run:
working-directory: ${{ env.working-directory }}
@@ -161,6 +167,7 @@ jobs:
release:
name: Release
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos-arm64, sdist]
steps: