Skip to content
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