Skip to content

Commit 45fd3f9

Browse files
authored
Merge pull request #316 from dbast/timeout
2 parents d1e04fc + 070eee6 commit 45fd3f9

15 files changed

+96
-0
lines changed

Diff for: .github/workflows/caching-envs-example.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
caching-example:
1823
name: Caching-Env
@@ -27,6 +32,7 @@ jobs:
2732
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
2833

2934
runs-on: ${{ matrix.os }}
35+
timeout-minutes: 30
3036
steps:
3137
- uses: actions/checkout@v4
3238

Diff for: .github/workflows/caching-example.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
caching-example:
1823
# prevent cronjobs from running on forks
@@ -21,6 +26,7 @@ jobs:
2126
'conda-incubator/setup-miniconda') || (github.event_name != 'schedule')
2227
name: Caching
2328
runs-on: "ubuntu-latest"
29+
timeout-minutes: 30
2430
steps:
2531
- uses: actions/checkout@v4
2632
- name: Cache conda

Diff for: .github/workflows/example-1.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-1:
1823
# prevent cronjobs from running on forks
@@ -26,6 +31,7 @@ jobs:
2631
matrix:
2732
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
2833
python-version: ["3.8", "3.11"]
34+
timeout-minutes: 30
2935
steps:
3036
- uses: actions/checkout@v4
3137
- uses: ./

Diff for: .github/workflows/example-10.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-10-miniforge:
1823
# prevent cronjobs from running on forks
@@ -76,6 +81,7 @@ jobs:
7681
- os: macos
7782
miniforge-variant: Mambaforge
7883
miniforge-version: "23.3.1-1"
84+
timeout-minutes: 30
7985
steps:
8086
- uses: actions/checkout@v4
8187
- uses: ./

Diff for: .github/workflows/example-11.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-11:
1823
# prevent cronjobs from running on forks
@@ -29,6 +34,7 @@ jobs:
2934
os: ["ubuntu-latest", "windows-latest"]
3035
architecture: ["x86"]
3136
miniconda-version: ["latest"]
37+
timeout-minutes: 30
3238
steps:
3339
- uses: actions/checkout@v4
3440
- uses: ./

Diff for: .github/workflows/example-2.yml

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-2-linux:
1823
# prevent cronjobs from running on forks
@@ -21,6 +26,7 @@ jobs:
2126
'conda-incubator/setup-miniconda') || (github.event_name != 'schedule')
2227
name: Ex2 Linux
2328
runs-on: "ubuntu-latest"
29+
timeout-minutes: 30
2430
steps:
2531
- uses: actions/checkout@v4
2632
- uses: ./
@@ -43,6 +49,7 @@ jobs:
4349
example-2-mac:
4450
name: Ex2 Mac
4551
runs-on: "macos-latest"
52+
timeout-minutes: 30
4653
steps:
4754
- uses: actions/checkout@v4
4855
- uses: ./
@@ -71,6 +78,7 @@ jobs:
7178
example-2-win:
7279
name: Ex2 Windows
7380
runs-on: "windows-latest"
81+
timeout-minutes: 30
7482
steps:
7583
- uses: actions/checkout@v4
7684
- uses: ./

Diff for: .github/workflows/example-3.yml

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-3:
1823
# prevent cronjobs from running on forks
@@ -24,6 +29,7 @@ jobs:
2429
defaults:
2530
run:
2631
shell: bash -el {0}
32+
timeout-minutes: 30
2733
steps:
2834
- uses: actions/checkout@v4
2935
- uses: ./
@@ -45,6 +51,7 @@ jobs:
4551
defaults:
4652
run:
4753
shell: bash -el {0}
54+
timeout-minutes: 30
4855
steps:
4956
- uses: actions/checkout@v4
5057
- uses: ./

Diff for: .github/workflows/example-4.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-4:
1823
# prevent cronjobs from running on forks
@@ -24,6 +29,7 @@ jobs:
2429
defaults:
2530
run:
2631
shell: bash -el {0}
32+
timeout-minutes: 30
2733
steps:
2834
- uses: actions/checkout@v4
2935
- uses: ./

Diff for: .github/workflows/example-5.yml

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-5-linux:
1823
# prevent cronjobs from running on forks
@@ -26,6 +31,7 @@ jobs:
2631
defaults:
2732
run:
2833
shell: bash -el {0}
34+
timeout-minutes: 30
2935
steps:
3036
- uses: actions/checkout@v4
3137
- run: |
@@ -50,6 +56,7 @@ jobs:
5056
defaults:
5157
run:
5258
shell: bash -el {0}
59+
timeout-minutes: 30
5360
steps:
5461
- uses: actions/checkout@v4
5562
- uses: ./
@@ -68,6 +75,7 @@ jobs:
6875
example-5-win:
6976
name: Ex5 Windows
7077
runs-on: "windows-latest"
78+
timeout-minutes: 30
7179
steps:
7280
- uses: actions/checkout@v4
7381
- uses: ./

Diff for: .github/workflows/example-6.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-6:
1823
# prevent cronjobs from running on forks
@@ -35,6 +40,7 @@ jobs:
3540
defaults:
3641
run:
3742
shell: bash -el {0}
43+
timeout-minutes: 30
3844
steps:
3945
- uses: actions/checkout@v4
4046
- uses: ./

Diff for: .github/workflows/example-7.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-7:
1823
# prevent cronjobs from running on forks
@@ -28,6 +33,7 @@ jobs:
2833
fail-fast: false
2934
matrix:
3035
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
36+
timeout-minutes: 30
3137
steps:
3238
- uses: actions/checkout@v4
3339
- uses: ./

Diff for: .github/workflows/example-8.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-8:
1823
# prevent cronjobs from running on forks
@@ -26,6 +31,7 @@ jobs:
2631
matrix:
2732
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
2833
python-version: ["3.8", "3.11"]
34+
timeout-minutes: 30
2935
steps:
3036
- uses: actions/checkout@v4
3137
- uses: ./

Diff for: .github/workflows/example-9.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
example-9:
1823
# prevent cronjobs from running on forks
@@ -26,6 +31,7 @@ jobs:
2631
matrix:
2732
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
2833
python-version: ["3.8", "3.11"]
34+
timeout-minutes: 30
2935
steps:
3036
- uses: actions/checkout@v4
3137
- uses: ./

Diff for: .github/workflows/lint.yml

+7
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ on:
1010
- "main"
1111
- "master"
1212

13+
concurrency:
14+
group:
15+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
16+
cancel-in-progress: true
17+
1318
jobs:
1419
lint:
1520
name: Lint
1621
runs-on: "ubuntu-latest"
22+
timeout-minutes: 30
1723
steps:
1824
- uses: actions/checkout@v4
1925
- uses: actions/setup-node@v4
@@ -27,6 +33,7 @@ jobs:
2733
build:
2834
name: Build
2935
runs-on: "ubuntu-latest"
36+
timeout-minutes: 30
3037
steps:
3138
- uses: actions/checkout@v4
3239
- uses: actions/setup-node@v4

Diff for: .github/workflows/regression-checks.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
# Note that cronjobs run on master/main by default
1414
- cron: "0 0 * * *"
1515

16+
concurrency:
17+
group:
18+
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19+
cancel-in-progress: true
20+
1621
jobs:
1722
issue-114:
1823
# prevent cronjobs from running on forks
@@ -29,6 +34,7 @@ jobs:
2934
matrix:
3035
os: ["ubuntu", "macos", "windows"]
3136
python-version: ["3.9"]
37+
timeout-minutes: 30
3238
steps:
3339
- uses: actions/checkout@v4
3440
- uses: ./

0 commit comments

Comments
 (0)