diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index cc920180d5ca..2ef956b9df9d 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -1,15 +1,30 @@ name: Build CI wheels on: + # Save CI by only running this on release branches or tags. push: branches: - master - v[0-9]+.[0-9]+.x tags: - v* + # Also allow running this action on PRs if requested by applying the + # "Run cibuildwheel" label. + pull_request: + types: + - opened + - synchronize + - reopened + - labeled jobs: build_wheels: + if: | + ( + github.event.action == 'labeled' && + github.event.label.name == 'Run cibuildwheel' + ) || + contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel') name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} env: diff --git a/doc/devel/coding_guide.rst b/doc/devel/coding_guide.rst index 68d8f9cf7d1f..db0072cae9da 100644 --- a/doc/devel/coding_guide.rst +++ b/doc/devel/coding_guide.rst @@ -123,6 +123,8 @@ Labels * If you have the rights to set labels, tag the PR with descriptive labels. See the `list of labels `__. +* If the PR makes changes to the wheel building Action, add the + "Run cibuildwheel" label to enable testing wheels. .. _pr-milestones: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy