Skip to content

Commit

Permalink
limit Github Actions job to 90 minutes max (instead of default 6h)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurbanski-reef committed Jul 29, 2024
1 parent f3f0521 commit 269f575
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:

jobs:
lint:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -35,6 +36,7 @@ jobs:
- name: Changelog validation
run: nox -vs towncrier_check
build:
timeout-minutes: 30
needs: lint
runs-on: ubuntu-latest
steps:
Expand All @@ -51,6 +53,7 @@ jobs:
- name: Build the distribution
run: nox -vs build
cleanup_buckets:
timeout-minutes: 30
needs: lint
env:
B2_TEST_APPLICATION_KEY: ${{ secrets.B2_TEST_APPLICATION_KEY }}
Expand All @@ -74,6 +77,7 @@ jobs:
if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }} # TODO: skip this whole job instead
run: nox -vs cleanup_old_buckets
test:
timeout-minutes: 90
needs: cleanup_buckets
env:
B2_TEST_APPLICATION_KEY: ${{ secrets.B2_TEST_APPLICATION_KEY }}
Expand Down Expand Up @@ -126,6 +130,7 @@ jobs:
if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }}
run: nox -vs integration -- --dont-cleanup-old-buckets -v
doc:
timeout-minutes: 30
needs: build
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+timelimit.infrastructure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Limit max CI (Github Actions) duration to 90 minutes.

0 comments on commit 269f575

Please # to comment.