From ca429435ce6d680c2ab29ae3560cf8b9cd0f51fa Mon Sep 17 00:00:00 2001 From: David Stansby Date: Fri, 23 Aug 2024 16:09:31 +0100 Subject: [PATCH] Fix build_all conditional --- .github/workflows/wheel.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheel.yaml b/.github/workflows/wheel.yaml index 7ae139c6..502f906a 100644 --- a/.github/workflows/wheel.yaml +++ b/.github/workflows/wheel.yaml @@ -15,8 +15,16 @@ jobs: matrix: # macos-12 is an intel runner, macos-14 is a arm64 runner os: [ubuntu-latest, windows-latest, macos-12, macos-14] - build_all: - - ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')) || contains(github.event.pull_request.labels.*.name, 'test all wheels')}} + # Build all wheels on either: + # - tagged release + # - pull request opened with "test all wheels" label + # - pull requests when "test all wheels" label is added + build_all: | + ${{ + (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')) + || contains(github.event.pull_request.labels.*.name, 'test all wheels') + || (github.event.action == 'labeled' && github.event.label.name == 'test all wheels') + }} env: CIBW_TEST_COMMAND: python -c "import numcodecs" CIBW_BUILD: "cp310-* cp311-* cp312-*"