Skip to content

Commit 431e55a

Browse files
authored
Add timeouts to GHA workflows (#74)
1 parent 21e0d20 commit 431e55a

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
build:
10+
timeout-minutes: 10
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v2
@@ -16,6 +17,7 @@ jobs:
1617
git diff --exit-code
1718
1819
lint:
20+
timeout-minutes: 10
1921
runs-on: ubuntu-latest
2022
steps:
2123
- uses: actions/checkout@v2

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
test:
1010
name: test
11+
timeout-minutes: 10
1112
runs-on: ${{ matrix.os }}
1213
strategy:
1314
fail-fast: false
@@ -74,6 +75,7 @@ jobs:
7475

7576
test_bash:
7677
name: Test bash
78+
timeout-minutes: 10
7779
runs-on: ${{ matrix.os }}
7880
strategy:
7981
fail-fast: false
@@ -105,6 +107,7 @@ jobs:
105107
106108
test_docker:
107109
name: test
110+
timeout-minutes: 10
108111
runs-on: ubuntu-latest
109112
container: ${{ matrix.container }}
110113
strategy:

.github/workflows/test_caching.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ defaults:
1313
jobs:
1414
test_download1:
1515
name: Test download cache 1/2
16+
timeout-minutes: 10
1617
runs-on: ${{ matrix.os }}
1718
strategy:
1819
fail-fast: false
@@ -33,6 +34,7 @@ jobs:
3334
3435
test_download2:
3536
name: Test download cache 2/2
37+
timeout-minutes: 10
3638
needs: [test_download1]
3739
runs-on: ${{ matrix.os }}
3840
strategy:
@@ -54,6 +56,7 @@ jobs:
5456
5557
test_env1:
5658
name: Test env cache 1/3
59+
timeout-minutes: 10
5760
runs-on: ${{ matrix.os }}
5861
strategy:
5962
fail-fast: false
@@ -74,6 +77,7 @@ jobs:
7477
7578
test_env2:
7679
name: Test env cache 2/3
80+
timeout-minutes: 10
7781
needs: [test_env1]
7882
runs-on: ${{ matrix.os }}
7983
strategy:
@@ -95,6 +99,7 @@ jobs:
9599
96100
test_env3:
97101
if: false # Doesn't work
102+
timeout-minutes: 10
98103
name: Test env cache 3/3
99104
needs: [test_env1]
100105
runs-on: ${{ matrix.os }}
@@ -118,6 +123,7 @@ jobs:
118123
119124
test_download_and_env1:
120125
name: Test download+env cache 1/2
126+
timeout-minutes: 10
121127
runs-on: ${{ matrix.os }}
122128
strategy:
123129
fail-fast: false
@@ -140,6 +146,7 @@ jobs:
140146
141147
test_download_and_env2:
142148
name: Test download+env cache 2/2
149+
timeout-minutes: 10
143150
needs: [test_download_and_env1]
144151
runs-on: ${{ matrix.os }}
145152
strategy:
@@ -163,6 +170,7 @@ jobs:
163170
164171
test_env_fail:
165172
name: Test env creation failure
173+
timeout-minutes: 10
166174
runs-on: ubuntu-latest
167175
strategy:
168176
matrix:

.github/workflows/test_lock.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
test:
1010
name: Test lock files
11+
timeout-minutes: 10
1112
runs-on: ${{ matrix.os }}
1213
strategy:
1314
fail-fast: false

.github/workflows/test_options.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ defaults:
1212
jobs:
1313
test_enviroment_file_and_enviroment_name:
1414
name: Test environment-file, environment-name, extra-specs, log-level
15+
timeout-minutes: 10
1516
runs-on: ${{ matrix.os }}
1617
strategy:
1718
fail-fast: false
@@ -93,6 +94,7 @@ jobs:
9394

9495
test_channels:
9596
name: Test channels
97+
timeout-minutes: 10
9698
runs-on: ubuntu-latest
9799
strategy:
98100
fail-fast: false
@@ -112,6 +114,7 @@ jobs:
112114

113115
test_environment_without_name:
114116
name: "Test environment.yml without name: attribute"
117+
timeout-minutes: 10
115118
runs-on: ubuntu-latest
116119
strategy:
117120
fail-fast: false
@@ -129,6 +132,7 @@ jobs:
129132

130133
test_extra_specs:
131134
name: Test extra-specs
135+
timeout-minutes: 10
132136
runs-on: ${{ matrix.os }}
133137
strategy:
134138
fail-fast: false
@@ -179,6 +183,7 @@ jobs:
179183
180184
test_channel_priority:
181185
name: Test channel-priority
186+
timeout-minutes: 10
182187
runs-on: ubuntu-latest
183188
strategy:
184189
fail-fast: false
@@ -199,6 +204,7 @@ jobs:
199204
200205
test_condarc_file:
201206
name: Test condarc-file
207+
timeout-minutes: 10
202208
runs-on: ${{ matrix.os }}
203209
strategy:
204210
fail-fast: false
@@ -225,6 +231,7 @@ jobs:
225231
226232
test_condarc_options:
227233
name: Test condarc-options
234+
timeout-minutes: 10
228235
runs-on: ${{ matrix.os }}
229236
strategy:
230237
fail-fast: false

0 commit comments

Comments
 (0)