Skip to content

Backport PR #22235 on branch v3.5.x (Run wheel builds on PRs when requested by a label) #22238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions doc/devel/coding_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ Labels

* If you have the rights to set labels, tag the PR with descriptive labels.
See the `list of labels <https://github.com/matplotlib/matplotlib/labels>`__.
* If the PR makes changes to the wheel building Action, add the
"Run cibuildwheel" label to enable testing wheels.

.. _pr-milestones:

Expand Down