From f404b66a4c20d421c9cee465a6796ca76a0a8992 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Tue, 4 Apr 2023 06:44:23 +0200 Subject: [PATCH] ci: concurrency (#931) * ci: concurrency * no fail-fast * Apply suggestions from code review --------- Co-authored-by: Shaokun --- .github/workflows/python-package.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index da5300437..31bff6056 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,11 +17,16 @@ on: merge_group: types: [checks_requested] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: build: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-2019] python-version: ["3.7", "3.8", "3.9", "3.10"]