From 7667f087052404703a615d9c4a70b6e64c5007c5 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Sat, 3 Sep 2022 16:33:36 +0100 Subject: [PATCH] Cancel old test jobs in CI --- .github/workflows/stubtest_stdlib.yml | 4 ++++ .github/workflows/tests.yml | 4 ++++ .github/workflows/typecheck_typeshed_code.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/stubtest_stdlib.yml b/.github/workflows/stubtest_stdlib.yml index 57f10c3a0700..3fed32946b5a 100644 --- a/.github/workflows/stubtest_stdlib.yml +++ b/.github/workflows/stubtest_stdlib.yml @@ -19,6 +19,10 @@ permissions: env: PIP_DISABLE_PIP_VERSION_CHECK: 1 +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: stubtest-stdlib: name: Check stdlib with stubtest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 481c3a636997..f56ace97f485 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,6 +16,10 @@ permissions: env: PIP_DISABLE_PIP_VERSION_CHECK: 1 +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: file-consistency: name: Check file consistency diff --git a/.github/workflows/typecheck_typeshed_code.yml b/.github/workflows/typecheck_typeshed_code.yml index e28b99221a4e..f13d6be9b5b6 100644 --- a/.github/workflows/typecheck_typeshed_code.yml +++ b/.github/workflows/typecheck_typeshed_code.yml @@ -19,6 +19,10 @@ permissions: env: PIP_DISABLE_PIP_VERSION_CHECK: 1 +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: mypy: name: Run mypy against the scripts and tests directories