From d8904e358a0d517e02a35bcc6f8415cb778d0a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Fri, 3 Jan 2025 13:33:38 +0100 Subject: [PATCH] ci: add concurrency control Closes #165 --- .github/workflows/ci.yml | 4 ++++ .github/workflows/lint.yml | 4 ++++ .github/workflows/pip-audit.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7c84ea..c8189d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: tests: name: CI (Python ${{ matrix.python }} on ${{ matrix.os }}, ${{ matrix.type }} test) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 80fb5bc..5610cf7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,6 +13,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read packages: read diff --git a/.github/workflows/pip-audit.yml b/.github/workflows/pip-audit.yml index fb3a219..cfdc1da 100644 --- a/.github/workflows/pip-audit.yml +++ b/.github/workflows/pip-audit.yml @@ -8,6 +8,10 @@ on: schedule: - cron: "0 12 * * *" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: pip-audit: runs-on: ubuntu-latest