Skip to content

Commit bb6db86

Browse files
committed
Cancel on concurrency
Cancel the old build when there're new changes in the branch/PR.
1 parent fa3d28e commit bb6db86

File tree

6 files changed

+20
-0
lines changed

6 files changed

+20
-0
lines changed

.github/workflows/linuxbrew.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: linuxbrew
22
on: [push, pull_request]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
36
jobs:
47
linuxbrew:
58
runs-on: ubuntu-latest

.github/workflows/macosx.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: macOS
22
on: [push, pull_request]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
36
jobs:
47
macosx:
58
runs-on: macos-latest

.github/workflows/manylinux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: manylinux
22
on: [push, pull_request]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
36
jobs:
47
manylinux:
58
runs-on: ubuntu-latest

.github/workflows/sdist.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: sdist
22
on: [push, pull_request]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
36
jobs:
47
sdist:
58
# Avoid Ubuntu 24.04 in sdist workflows, because it contains libxmlsec1-dev

.github/workflows/wheels.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
pull_request:
1616
workflow_dispatch:
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1822
permissions: {}
1923

2024
jobs:

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
dist: focal
22
language: python
3+
travis:
4+
auto_cancel:
5+
push: true
6+
pull_request: true
37

48
notifications:
59
email: false

0 commit comments

Comments
 (0)