Skip to content

Commit 7a04cbd

Browse files
committed
Copy concurrency setting from setuptools
1 parent 64eb463 commit 7a04cbd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: tests
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: >-
7+
${{ github.workflow }}-
8+
${{ github.ref_type }}-
9+
${{ github.event.pull_request.number || github.sha }}
10+
cancel-in-progress: true
11+
512
permissions:
613
contents: read
714

@@ -18,10 +25,6 @@ env:
1825
TOX_OVERRIDE: >-
1926
testenv.pass_env+=GITHUB_*,FORCE_COLOR
2027
21-
concurrency:
22-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
23-
cancel-in-progress: true
24-
2528
jobs:
2629
test:
2730
strategy:

0 commit comments

Comments
 (0)