summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2023-03-05 10:47:47 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2023-03-05 11:06:15 -0500
commit857232e0c3788167de9f9889bac8548df21deb31 (patch)
treebdb9b5cefd9605edb6b5332e8af970151712d555 /.github
parent7aa2c3413086585558a8b75fb38f04d2c4054a25 (diff)
downloadastroid-git-857232e0c3788167de9f9889bac8548df21deb31.tar.gz
Cancel previous tests when pushing to PRs
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml4
-rw-r--r--.github/workflows/codeql-analysis.yml4
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index a7185ddf..c2c025e9 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -13,6 +13,10 @@ env:
DEFAULT_PYTHON: "3.11"
PRE_COMMIT_CACHE: ~/.cache/pre-commit
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
base-checks:
name: Checks
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 550ec973..51c56656 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