Skip to content

Commit

Permalink
Add timeouts to GHA workflows (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashaag committed Jun 29, 2022
1 parent 21e0d20 commit 431e55a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
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
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
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
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
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

0 comments on commit 431e55a

Please sign in to comment.