diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f69bf097..36089c36 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -4,6 +4,8 @@ # As directed from: # https://docs.github.com/en/actions/guides/building-and-testing-python#starting-with-the-python-workflow-template +name: Check + on: workflow_dispatch: pull_request: @@ -11,6 +13,12 @@ on: branches: - main +# One run per pull request; a new event supersedes the one in flight. +# Pushes to main and manual runs group by ref and always run to completion. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + permissions: {} jobs: diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml index 03c6b07d..47f9bc36 100644 --- a/.github/workflows/features.yml +++ b/.github/workflows/features.yml @@ -6,6 +6,12 @@ on: branches: - main +# One run per pull request; a new event supersedes the one in flight. +# Pushes to main and manual runs group by ref and always run to completion. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + permissions: {} jobs: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d1027713..cfbcfed0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,6 +6,12 @@ on: branches: - main +# One run per pull request; a new event supersedes the one in flight. +# Pushes to main and manual runs group by ref and always run to completion. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + permissions: {} jobs: