Skip to content

Commit 73c33ea

Browse files
authored
Merge pull request #22238 from meeseeksmachine/auto-backport-of-pr-22235-on-v3.5.x
Backport PR #22235 on branch v3.5.x (Run wheel builds on PRs when requested by a label)
2 parents 03a025c + ee6471c commit 73c33ea

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
name: Build CI wheels
22

33
on:
4+
# Save CI by only running this on release branches or tags.
45
push:
56
branches:
67
- master
78
- v[0-9]+.[0-9]+.x
89
tags:
910
- v*
11+
# Also allow running this action on PRs if requested by applying the
12+
# "Run cibuildwheel" label.
13+
pull_request:
14+
types:
15+
- opened
16+
- synchronize
17+
- reopened
18+
- labeled
1019

1120
jobs:
1221
build_wheels:
22+
if: |
23+
(
24+
github.event.action == 'labeled' &&
25+
github.event.label.name == 'Run cibuildwheel'
26+
) ||
27+
contains(github.event.pull_request.labels.*.name, 'Run cibuildwheel')
1328
name: Build wheels on ${{ matrix.os }}
1429
runs-on: ${{ matrix.os }}
1530
env:

doc/devel/coding_guide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ Labels
123123

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

127129
.. _pr-milestones:
128130

0 commit comments

Comments
 (0)
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