File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 11name : Build CI wheels
22
33on :
4+ # Save CI by only running this on release branches or tags.
45 push :
56 branches :
67 - main
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
1120jobs :
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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments