File tree 15 files changed +96
-0
lines changed
15 files changed +96
-0
lines changed Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
caching-example :
18
23
name : Caching-Env
27
32
os : ["ubuntu-latest", "macos-latest", "windows-latest"]
28
33
29
34
runs-on : ${{ matrix.os }}
35
+ timeout-minutes : 30
30
36
steps :
31
37
- uses : actions/checkout@v4
32
38
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
caching-example :
18
23
# prevent cronjobs from running on forks
21
26
' conda-incubator/setup-miniconda' ) || (github.event_name != 'schedule')
22
27
name : Caching
23
28
runs-on : " ubuntu-latest"
29
+ timeout-minutes : 30
24
30
steps :
25
31
- uses : actions/checkout@v4
26
32
- name : Cache conda
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-1 :
18
23
# prevent cronjobs from running on forks
26
31
matrix :
27
32
os : ["ubuntu-latest", "macos-latest", "windows-latest"]
28
33
python-version : ["3.8", "3.11"]
34
+ timeout-minutes : 30
29
35
steps :
30
36
- uses : actions/checkout@v4
31
37
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-10-miniforge :
18
23
# prevent cronjobs from running on forks
76
81
- os : macos
77
82
miniforge-variant : Mambaforge
78
83
miniforge-version : " 23.3.1-1"
84
+ timeout-minutes : 30
79
85
steps :
80
86
- uses : actions/checkout@v4
81
87
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-11 :
18
23
# prevent cronjobs from running on forks
29
34
os : ["ubuntu-latest", "windows-latest"]
30
35
architecture : ["x86"]
31
36
miniconda-version : ["latest"]
37
+ timeout-minutes : 30
32
38
steps :
33
39
- uses : actions/checkout@v4
34
40
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-2-linux :
18
23
# prevent cronjobs from running on forks
21
26
' conda-incubator/setup-miniconda' ) || (github.event_name != 'schedule')
22
27
name : Ex2 Linux
23
28
runs-on : " ubuntu-latest"
29
+ timeout-minutes : 30
24
30
steps :
25
31
- uses : actions/checkout@v4
26
32
- uses : ./
43
49
example-2-mac :
44
50
name : Ex2 Mac
45
51
runs-on : " macos-latest"
52
+ timeout-minutes : 30
46
53
steps :
47
54
- uses : actions/checkout@v4
48
55
- uses : ./
71
78
example-2-win :
72
79
name : Ex2 Windows
73
80
runs-on : " windows-latest"
81
+ timeout-minutes : 30
74
82
steps :
75
83
- uses : actions/checkout@v4
76
84
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-3 :
18
23
# prevent cronjobs from running on forks
24
29
defaults :
25
30
run :
26
31
shell : bash -el {0}
32
+ timeout-minutes : 30
27
33
steps :
28
34
- uses : actions/checkout@v4
29
35
- uses : ./
45
51
defaults :
46
52
run :
47
53
shell : bash -el {0}
54
+ timeout-minutes : 30
48
55
steps :
49
56
- uses : actions/checkout@v4
50
57
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-4 :
18
23
# prevent cronjobs from running on forks
24
29
defaults :
25
30
run :
26
31
shell : bash -el {0}
32
+ timeout-minutes : 30
27
33
steps :
28
34
- uses : actions/checkout@v4
29
35
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-5-linux :
18
23
# prevent cronjobs from running on forks
26
31
defaults :
27
32
run :
28
33
shell : bash -el {0}
34
+ timeout-minutes : 30
29
35
steps :
30
36
- uses : actions/checkout@v4
31
37
- run : |
50
56
defaults :
51
57
run :
52
58
shell : bash -el {0}
59
+ timeout-minutes : 30
53
60
steps :
54
61
- uses : actions/checkout@v4
55
62
- uses : ./
68
75
example-5-win :
69
76
name : Ex5 Windows
70
77
runs-on : " windows-latest"
78
+ timeout-minutes : 30
71
79
steps :
72
80
- uses : actions/checkout@v4
73
81
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-6 :
18
23
# prevent cronjobs from running on forks
35
40
defaults :
36
41
run :
37
42
shell : bash -el {0}
43
+ timeout-minutes : 30
38
44
steps :
39
45
- uses : actions/checkout@v4
40
46
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-7 :
18
23
# prevent cronjobs from running on forks
28
33
fail-fast : false
29
34
matrix :
30
35
os : ["ubuntu-latest", "macos-latest", "windows-latest"]
36
+ timeout-minutes : 30
31
37
steps :
32
38
- uses : actions/checkout@v4
33
39
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-8 :
18
23
# prevent cronjobs from running on forks
26
31
matrix :
27
32
os : ["ubuntu-latest", "macos-latest", "windows-latest"]
28
33
python-version : ["3.8", "3.11"]
34
+ timeout-minutes : 30
29
35
steps :
30
36
- uses : actions/checkout@v4
31
37
- uses : ./
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
example-9 :
18
23
# prevent cronjobs from running on forks
26
31
matrix :
27
32
os : ["ubuntu-latest", "macos-latest", "windows-latest"]
28
33
python-version : ["3.8", "3.11"]
34
+ timeout-minutes : 30
29
35
steps :
30
36
- uses : actions/checkout@v4
31
37
- uses : ./
Original file line number Diff line number Diff line change 10
10
- " main"
11
11
- " master"
12
12
13
+ concurrency :
14
+ group :
15
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
16
+ cancel-in-progress : true
17
+
13
18
jobs :
14
19
lint :
15
20
name : Lint
16
21
runs-on : " ubuntu-latest"
22
+ timeout-minutes : 30
17
23
steps :
18
24
- uses : actions/checkout@v4
19
25
- uses : actions/setup-node@v4
27
33
build :
28
34
name : Build
29
35
runs-on : " ubuntu-latest"
36
+ timeout-minutes : 30
30
37
steps :
31
38
- uses : actions/checkout@v4
32
39
- uses : actions/setup-node@v4
Original file line number Diff line number Diff line change 13
13
# Note that cronjobs run on master/main by default
14
14
- cron : " 0 0 * * *"
15
15
16
+ concurrency :
17
+ group :
18
+ ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
19
+ cancel-in-progress : true
20
+
16
21
jobs :
17
22
issue-114 :
18
23
# prevent cronjobs from running on forks
29
34
matrix :
30
35
os : ["ubuntu", "macos", "windows"]
31
36
python-version : ["3.9"]
37
+ timeout-minutes : 30
32
38
steps :
33
39
- uses : actions/checkout@v4
34
40
- uses : ./
You can’t perform that action at this time.
0 commit comments