Skip to content

Commit 987bf02

Browse files
committed
Add concurrency
1 parent 6428d81 commit 987bf02

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: ci
22
on: [push, pull_request]
3+
concurrency: # https://stackoverflow.com/questions/66335225#comment133398800_72408109
4+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
5+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
36
jobs:
47
ci:
58
strategy:

.github/workflows/wheels.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ on:
88
types: [released, prereleased]
99
workflow_dispatch: # allows running workflow manually from the Actions tab
1010

11-
jobs:
11+
concurrency: # https://stackoverflow.com/questions/66335225#comment133398800_72408109
12+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
13+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1214

15+
jobs:
1316
build-sdist:
1417
runs-on: ubuntu-latest
1518

0 commit comments

Comments
 (0)