Copy concurrency setting from setuptools · pypa/distutils@7a04cbd (original) (raw)

Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@ name: tests
2 2
3 3 on: [push, pull_request]
4 4
5 +concurrency:
6 +group: >-
7 + ${{ github.workflow }}-
8 + ${{ github.ref_type }}-
9 + ${{ github.event.pull_request.number |
10 + cancel-in-progress: true
11 +
5 12 permissions:
6 13 contents: read
7 14
@@ -18,10 +25,6 @@ env:
18 25 TOX_OVERRIDE: >-
19 26 testenv.pass_env+=GITHUB_*,FORCE_COLOR
20 27
21 -concurrency:
22 -group: github.workflow−{{ github.workflow }}-github.workflow{{ github.event.pull_request.number |
23 -cancel-in-progress: true
24 -
25 28 jobs:
26 29 test:
27 30 strategy: