diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2023-03-05 10:15:07 -0500 |
---|---|---|
committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2023-03-05 11:22:06 -0500 |
commit | 47cb11f4cb01a61f83d915d88e828f103a479980 (patch) | |
tree | b1539e94df40f33e57af079730ea2ea9e3e6430c | |
parent | c356a3c99388a192dd57beea99c4d043e15cff2c (diff) | |
download | pylint-git-47cb11f4cb01a61f83d915d88e828f103a479980.tar.gz |
Cancel previous tests when pushing to PRs
-rw-r--r-- | .github/workflows/codeql-analysis.yml | 4 | ||||
-rw-r--r-- | .github/workflows/tests.yaml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 550ec973e..51c566566 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,6 +23,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index dcab2a9a5..3cfca316e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -19,6 +19,10 @@ env: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: tests-linux: name: run / ${{ matrix.python-version }} / Linux |