From d0183bad5237e617ebeec6c4d489bc51da657fd8 Mon Sep 17 00:00:00 2001 From: Akihiro Nitta Date: Sun, 9 Feb 2025 11:31:54 +0000 Subject: [PATCH] add concurrency --- .github/workflows/documentation.yml | 4 ++++ .github/workflows/linting.yml | 4 ++++ .github/workflows/testing.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7ef84762..bd6b383d 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,6 +6,10 @@ on: # yamllint disable-line rule:truthy - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: make_html: diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 80a691d3..3717bee8 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -6,6 +6,10 @@ on: # yamllint disable-line rule:truthy - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: mypy: runs-on: ubuntu-latest diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index b7fe56ec..537cade2 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -6,6 +6,10 @@ on: # yamllint disable-line rule:truthy - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: pytest: