File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1
1
name : Build CI wheels
2
2
3
3
on :
4
+ # Save CI by only running this on release branches or tags.
4
5
push :
5
6
branches :
6
7
- master
7
8
- v[0-9]+.[0-9]+.x
8
9
tags :
9
10
- 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
10
19
11
20
jobs :
12
21
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')
13
28
name : Build wheels on ${{ matrix.os }}
14
29
runs-on : ${{ matrix.os }}
15
30
env :
Original file line number Diff line number Diff line change @@ -123,6 +123,8 @@ Labels
123
123
124
124
* If you have the rights to set labels, tag the PR with descriptive labels.
125
125
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.
126
128
127
129
.. _pr-milestones :
128
130
You can’t perform that action at this time.
0 commit comments