Skip to content

Commit 6d33516

Browse files
committed
CI: Use concurrency groups to reduce CI load
1 parent e5be008 commit 6d33516

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/contrib.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
shell: bash
2020

21+
concurrency:
22+
group: contrib-${{ github.ref }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
stable:
2327
# Check each OS, all supported Python, minimum versions and latest releases

.github/workflows/package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ defaults:
1616
run:
1717
shell: bash
1818

19+
concurrency:
20+
group: package-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
package:
2125
# Build packages and upload

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ defaults:
2323
run:
2424
shell: bash
2525

26+
concurrency:
27+
group: tests-${{ github.ref }}
28+
cancel-in-progress: true
29+
2630
jobs:
2731
stable:
2832
# Check each OS, all supported Python, minimum versions and latest releases

.github/workflows/tutorials.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- 'rel/*'
77

8+
concurrency:
9+
group: tutorials-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
tutorial:
1014
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)