From 644575415e64769894e63e6eec6c05878fdeacd1 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 5 Apr 2023 16:11:19 +0100 Subject: [PATCH] Concurrency control for Python tests. --- .github/workflows/run-python-tests-epas.yml | 4 ++++ .github/workflows/run-python-tests-pg.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/run-python-tests-epas.yml b/.github/workflows/run-python-tests-epas.yml index cd1304b8c..deb360ab2 100644 --- a/.github/workflows/run-python-tests-epas.yml +++ b/.github/workflows/run-python-tests-epas.yml @@ -17,6 +17,10 @@ on: workflow_dispatch: +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: build: # Only run if the tests are enabled diff --git a/.github/workflows/run-python-tests-pg.yml b/.github/workflows/run-python-tests-pg.yml index 2c263f769..317a19b07 100644 --- a/.github/workflows/run-python-tests-pg.yml +++ b/.github/workflows/run-python-tests-pg.yml @@ -8,6 +8,10 @@ on: workflow_dispatch: +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: build: strategy: