From c7f1ccf97f49205021a6b308b9b25813c674a9bb Mon Sep 17 00:00:00 2001 From: Mathew Payne <2772944+GeekMasher@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:51:40 +0000 Subject: [PATCH] feat(ci): Improve Python concurrency --- .github/workflows/python-build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 86abb2c..7e9af6a 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -24,13 +24,18 @@ jobs: build: # This workflow runs on the latest version of Ubuntu runs-on: ubuntu-latest + + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.python-version }} + cancel-in-progress: true + strategy: fail-fast: false matrix: # Python versions to test against # These are all the main versions of Python that are currently supported # excluding 3.8 - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout @@ -105,4 +110,4 @@ jobs: else echo "No test script found" echo "Skipping test step" - fi \ No newline at end of file + fi