summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorThomas Li <47963215+lithomas1@users.noreply.github.com>2022-02-22 10:23:47 -0800
committerThomas Li <47963215+lithomas1@users.noreply.github.com>2022-03-04 07:56:05 -0800
commit237c6739c2e02e823a237dcc117b630982aeb9e6 (patch)
treed8a76caebf8114585a35828654361901e51da47e /.github
parentbe7d38431255eb5bd928c41caea40f5c87320cad (diff)
downloadnumpy-237c6739c2e02e823a237dcc117b630982aeb9e6.tar.gz
BLD: Run wheel builders on labeled pull requests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/wheels.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 2e7caaa2c..1f1677148 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -6,6 +6,12 @@
# in the get_commit_message job. Be sure to include [wheel build] in your commit
# message to trigger the build. All files related to wheel building are located
# at tools/wheels/
+# Alternatively, you can add labels to the pull request in order to trigger wheel
+# builds.
+# The labels that trigger builds are:
+# 36 - Build(for changes to the building process,
+# 03 - Maintenance(for dependency upgrades), and
+# 14 - Release(ensure wheels build before release)
name: Wheel builder
on:
@@ -19,6 +25,7 @@ on:
- cron: "42 1 * * 4"
push:
pull_request:
+ types: [labeled, opened, synchronize, reopened]
workflow_dispatch:
concurrency:
@@ -53,6 +60,10 @@ jobs:
contains(needs.get_commit_message.outputs.message, '[wheel build]') ||
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'pull_request' &&
+ (contains(github.event.pull_request.labels.*.name, '36 - Build') ||
+ contains(github.event.pull_request.labels.*.name, '03 - Maintenance') ||
+ contains(github.event.pull_request.labels.*.name, '14 - Release'))) ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ( ! endsWith(github.ref, 'dev0')))
runs-on: ${{ matrix.buildplat[0] }}
strategy:
@@ -71,7 +82,7 @@ jobs:
# manylinux pypy builds
- buildplat: [ubuntu-20.04, manylinux_x86_64]
python: "pp38"
-
+
# TODO: Uncomment and bump cibuildwheel version
# once cibuildwheel adds PyPy 7.3.8
# macOS pypy builds