summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-08-03 12:17:35 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-08-03 12:20:03 -0400
commit673fbf1d7edaea895b26a506b0a5e58e286bf0e8 (patch)
tree22ae91e8649d8ab3bc8a003eaa182d58e2210a35
parent08b9db03d303f208fd276a86c231c94b2ea7d5b1 (diff)
downloadpython-coveragepy-git-673fbf1d7edaea895b26a506b0a5e58e286bf0e8.tar.gz
build: use built-in workflow cancelling
-rw-r--r--.github/workflows/cancel.yml25
-rw-r--r--.github/workflows/coverage.yml4
-rw-r--r--.github/workflows/kit.yml4
-rw-r--r--.github/workflows/python-nightly.yml4
-rw-r--r--.github/workflows/quality.yml4
-rw-r--r--.github/workflows/testsuite.yml4
6 files changed, 20 insertions, 25 deletions
diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml
deleted file mode 100644
index f25aaec0..00000000
--- a/.github/workflows/cancel.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-# This action finds in-progress Action jobs for the same branch, and cancels
-# them. There's little point in continuing to run superseded jobs.
-
-name: "Cancel"
-
-on:
- push:
-
-permissions:
- contents: read
-
-jobs:
- cancel:
- permissions:
- actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
- runs-on: ubuntu-latest
- steps:
- - name: "Cancel Previous Runs"
- uses: styfle/cancel-workflow-action@0.10.0
- with:
- access_token: ${{ github.token }}
- workflow_id: all
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index ac1ee43d..88af417b 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -22,6 +22,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: "${{ github.workflow }}-${{ github.ref }}"
+ cancel-in-progress: true
+
jobs:
coverage:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml
index fcce04c6..f8f0c9f8 100644
--- a/.github/workflows/kit.yml
+++ b/.github/workflows/kit.yml
@@ -41,6 +41,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: "${{ github.workflow }}-${{ github.ref }}"
+ cancel-in-progress: true
+
jobs:
wheels:
name: "Build ${{ matrix.os }} ${{ matrix.py }} ${{ matrix.arch }} wheels"
diff --git a/.github/workflows/python-nightly.yml b/.github/workflows/python-nightly.yml
index ea71bb27..44e75886 100644
--- a/.github/workflows/python-nightly.yml
+++ b/.github/workflows/python-nightly.yml
@@ -25,6 +25,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: "${{ github.workflow }}-${{ github.ref }}"
+ cancel-in-progress: true
+
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml
index 678e8310..2394b779 100644
--- a/.github/workflows/quality.yml
+++ b/.github/workflows/quality.yml
@@ -21,6 +21,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: "${{ github.workflow }}-${{ github.ref }}"
+ cancel-in-progress: true
+
jobs:
lint:
name: "Pylint etc"
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml
index f3db9616..e70032e5 100644
--- a/.github/workflows/testsuite.yml
+++ b/.github/workflows/testsuite.yml
@@ -22,6 +22,10 @@ env:
permissions:
contents: read
+concurrency:
+ group: "${{ github.workflow }}-${{ github.ref }}"
+ cancel-in-progress: true
+
jobs:
tests:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"