Browse Source

feat(ci): Cancel in-progress runs when a new run is requested

pull/10109/head
dolfies 7 months ago
parent
commit
928877dee8
  1. 5
      .github/workflows/build.yml
  2. 5
      .github/workflows/lint.yml
  3. 5
      .github/workflows/rename.yml
  4. 5
      .github/workflows/test.yml

5
.github/workflows/build.yml

@ -5,6 +5,11 @@ on:
pull_request:
types: [ opened, synchronize ]
# Runs do not need to be concurrent
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
dists-and-docs:
runs-on: ubuntu-latest

5
.github/workflows/lint.yml

@ -5,6 +5,11 @@ on:
pull_request:
types: [ opened, synchronize ]
# Runs do not need to be concurrent
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest

5
.github/workflows/rename.yml

@ -5,6 +5,11 @@ on:
push:
branches: [ master ]
# Runs do not need to be concurrent
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rename:
runs-on: ubuntu-latest

5
.github/workflows/test.yml

@ -5,6 +5,11 @@ on:
pull_request:
types: [ opened, synchronize ]
# Runs do not need to be concurrent
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
pytest:
runs-on: ubuntu-latest

Loading…
Cancel
Save