Skip to content

Commit d595221

Browse files
authored
cancel tests on new commit (#3028)
Auto-generated PR for: cancel tests on new commit <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Cancel in-progress GitHub Actions runs when a new commit is pushed to the same branch or PR. This cuts wasted CI minutes and speeds up feedback. - **Refactors** - Added concurrency with cancel-in-progress: true to workflows: test, lint, package, publish, docker, cloud_evals. - Used group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} to scope per workflow and branch/PR. <!-- End of auto-generated description by cubic. -->
2 parents df9c26c + 250b611 commit d595221

File tree

6 files changed

+32
-0
lines changed

6 files changed

+32
-0
lines changed

.github/workflows/cloud_evals.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: cloud_evals
22

3+
# Cancel in-progress runs when a new commit is pushed to the same branch/PR
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
38
on:
49
push:
510
branches:

.github/workflows/docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: docker
22

3+
# Cancel in-progress runs when a new commit is pushed to the same branch/PR
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
38
on:
49
push:
510
release:

.github/workflows/lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
name: lint
2+
3+
# Cancel in-progress runs when a new commit is pushed to the same branch/PR
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
28
on:
39
push:
410
branches:

.github/workflows/package.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
name: package
2+
3+
# Cancel in-progress runs when a new commit is pushed to the same branch/PR
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
6+
cancel-in-progress: true
7+
28
on:
39
push:
410
branches:

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
name: publish
1010

11+
# Cancel in-progress runs when a new commit is pushed to the same branch/PR
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1116
on:
1217
release:
1318
types: [published] # publish full release to PyPI when a release is created on Github

.github/workflows/test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ permissions:
77
statuses: write # Allow writing statuses on PRs
88
discussions: write
99

10+
# Cancel in-progress runs when a new commit is pushed to the same branch/PR
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
1015
on:
1116
push:
1217
branches:

0 commit comments

Comments
 (0)