Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeouts to GHA workflows #74

Merged
merged 1 commit into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add timeouts to GHA workflows
  • Loading branch information
jonashaag committed Jun 29, 2022
commit d66eb9e90ddea076b9bd0e0b32681c87c7dc603c
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -16,6 +17,7 @@ jobs:
git diff --exit-code

lint:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
test:
name: test
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:

test_bash:
name: Test bash
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -105,6 +107,7 @@ jobs:

test_docker:
name: test
timeout-minutes: 10
runs-on: ubuntu-latest
container: ${{ matrix.container }}
strategy:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test_caching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ defaults:
jobs:
test_download1:
name: Test download cache 1/2
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -33,6 +34,7 @@ jobs:

test_download2:
name: Test download cache 2/2
timeout-minutes: 10
needs: [test_download1]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -54,6 +56,7 @@ jobs:

test_env1:
name: Test env cache 1/3
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -74,6 +77,7 @@ jobs:

test_env2:
name: Test env cache 2/3
timeout-minutes: 10
needs: [test_env1]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -95,6 +99,7 @@ jobs:

test_env3:
if: false # Doesn't work
timeout-minutes: 10
name: Test env cache 3/3
needs: [test_env1]
runs-on: ${{ matrix.os }}
Expand All @@ -118,6 +123,7 @@ jobs:

test_download_and_env1:
name: Test download+env cache 1/2
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -140,6 +146,7 @@ jobs:

test_download_and_env2:
name: Test download+env cache 2/2
timeout-minutes: 10
needs: [test_download_and_env1]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -163,6 +170,7 @@ jobs:

test_env_fail:
name: Test env creation failure
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
test:
name: Test lock files
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ defaults:
jobs:
test_enviroment_file_and_enviroment_name:
name: Test environment-file, environment-name, extra-specs, log-level
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -93,6 +94,7 @@ jobs:

test_channels:
name: Test channels
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -112,6 +114,7 @@ jobs:

test_environment_without_name:
name: "Test environment.yml without name: attribute"
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -129,6 +132,7 @@ jobs:

test_extra_specs:
name: Test extra-specs
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -179,6 +183,7 @@ jobs:

test_channel_priority:
name: Test channel-priority
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -199,6 +204,7 @@ jobs:

test_condarc_file:
name: Test condarc-file
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -225,6 +231,7 @@ jobs:

test_condarc_options:
name: Test condarc-options
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down