From 4b64cba9214b092ca00b336baae2330dcd0aacc4 Mon Sep 17 00:00:00 2001 From: Timofey Koolin Date: Tue, 21 Feb 2023 10:53:12 +0300 Subject: [PATCH] stop old tests if new commit pushed to same branch --- .github/workflows/tests.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 71bdf07f..9c0a2392 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,6 +9,11 @@ on: jobs: build: runs-on: ubuntu-latest + + concurrency: + group: unit-${{ github.ref }}-${{ matrix.environment }}-${{ matrix.python-version }} + cancel-in-progress: true + strategy: max-parallel: 4 matrix: