Skip to content

Commit bc36a57

Browse files
committed
Skip all build-*.yml workflows on pull_request from dependabot
1 parent 48c0936 commit bc36a57

187 files changed

Lines changed: 980 additions & 286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/_setup.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-FileCopyrightText: 2026 The RISE Project
2+
# SPDX-License-Identifier: MIT
3+
4+
name: Build workflow setup
5+
6+
on:
7+
workflow_call:
8+
9+
jobs:
10+
setup:
11+
if: github.event_name != 'pull_request' || github.actor != 'dependabot[bot]'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- run: true

.github/workflows/build-amazon-ion.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ env:
3030
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
3131

3232
jobs:
33+
setup:
34+
uses: $/.github/workflows/_setup.yml
35+
3336
build_wheels:
37+
needs: [setup]
3438
name: Build amazon-ion ${{ inputs.version || '0.14.6' }} ${{ matrix.python }}-manylinux_riscv64
3539
runs-on: ubuntu-24.04-riscv
3640
timeout-minutes: 120
@@ -101,7 +105,7 @@ jobs:
101105

102106
publish:
103107
name: Publish amazon-ion ${{ inputs.version || '0.14.6' }} to GitLab
104-
needs: [build_wheels]
108+
needs: [setup, build_wheels]
105109
runs-on: ubuntu-latest
106110
permissions:
107111
contents: write

.github/workflows/build-apache-tvm-ffi.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ env:
3333
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
3434

3535
jobs:
36+
setup:
37+
uses: $/.github/workflows/_setup.yml
38+
3639
build_sdist:
40+
needs: [setup]
3741
# The sdist is architecture-independent: it just packages the source tree,
3842
# the vendored submodules (dlpack, libbacktrace) and a setuptools-scm-derived
3943
# _version.py. Build it once on x86 instead of burning a scarce riscv runner
@@ -83,7 +87,7 @@ jobs:
8387
if-no-files-found: error
8488

8589
build_wheels:
86-
needs: build_sdist
90+
needs: [setup, build_sdist]
8791
name: Build apache-tvm-ffi ${{ inputs.version || '0.1.12' }} ${{ matrix.python }}-manylinux_riscv64
8892
runs-on: ubuntu-24.04-riscv
8993
permissions:
@@ -175,7 +179,7 @@ jobs:
175179

176180
publish:
177181
name: Publish apache-tvm-ffi ${{ inputs.version || '0.1.12' }} to GitLab
178-
needs: [build_wheels]
182+
needs: [setup, build_wheels]
179183
runs-on: ubuntu-latest
180184
permissions:
181185
contents: write

.github/workflows/build-array-record.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ env:
3838
RULES_JAVA_VERSION: '7.6.5'
3939

4040
jobs:
41+
setup:
42+
uses: $/.github/workflows/_setup.yml
43+
4144
bazel:
45+
needs: [setup]
4246
name: Bootstrap bazel (riscv64)
4347
runs-on: ubuntu-24.04-riscv
4448
timeout-minutes: 720
@@ -107,7 +111,7 @@ jobs:
107111
name: Build array-record ${{ inputs.version || '0.8.3' }} ${{ matrix.tag }}-manylinux_riscv64
108112
runs-on: ubuntu-24.04-riscv
109113
timeout-minutes: 720
110-
needs: [bazel]
114+
needs: [setup, bazel]
111115

112116
strategy:
113117
fail-fast: false
@@ -308,7 +312,7 @@ jobs:
308312
309313
publish:
310314
name: Publish array-record ${{ inputs.version || '0.8.3' }} to GitLab
311-
needs: [build_wheels]
315+
needs: [setup, build_wheels]
312316
runs-on: ubuntu-latest
313317
permissions:
314318
contents: write

.github/workflows/build-arro3-core.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ env:
2929
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
3030

3131
jobs:
32+
setup:
33+
uses: $/.github/workflows/_setup.yml
34+
3235
build_wheels:
36+
needs: [setup]
3337
name: Build arro3-core ${{ inputs.version || '0.8.1' }} ${{ matrix.tag }}-manylinux_riscv64
3438
runs-on: ubuntu-24.04-riscv
3539
timeout-minutes: 360
@@ -299,7 +303,7 @@ jobs:
299303

300304
publish:
301305
name: Publish arro3-core ${{ inputs.version || '0.8.1' }} to GitLab
302-
needs: [build_wheels]
306+
needs: [setup, build_wheels]
303307
runs-on: ubuntu-latest
304308
permissions:
305309
contents: write

.github/workflows/build-astropy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ env:
3333
EXTENSION_HELPERS_PY_LIMITED_API: 'cp311'
3434

3535
jobs:
36-
# Upstream also builds musllinux_x86_64, dropped here: numpy is a build and a
37-
# runtime requirement and we publish no musllinux_riscv64 numpy wheel.
36+
setup:
37+
uses: $/.github/workflows/_setup.yml
38+
3839
build_wheels:
40+
needs: [setup]
3941
name: Build astropy ${{ inputs.version || '8.0.1' }} cp311-abi3-manylinux_riscv64
4042
runs-on: ubuntu-24.04-riscv
4143
timeout-minutes: 720
@@ -98,7 +100,7 @@ jobs:
98100

99101
publish:
100102
name: Publish astropy ${{ inputs.version || '8.0.1' }} to GitLab
101-
needs: [build_wheels]
103+
needs: [setup, build_wheels]
102104
runs-on: ubuntu-latest
103105
permissions:
104106
contents: write

.github/workflows/build-asyncpg.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ env:
2828
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
2929

3030
jobs:
31+
setup:
32+
uses: $/.github/workflows/_setup.yml
33+
3134
build_wheels:
35+
needs: [setup]
3236
name: Build asyncpg ${{ inputs.version || '0.31.0' }} ${{ matrix.python }}-manylinux_riscv64
3337
runs-on: ubuntu-24.04-riscv
3438
timeout-minutes: 180
@@ -80,7 +84,7 @@ jobs:
8084

8185
publish:
8286
name: Publish asyncpg ${{ inputs.version || '0.31.0' }} to GitLab
83-
needs: [build_wheels]
87+
needs: [setup, build_wheels]
8488
runs-on: ubuntu-latest
8589
permissions:
8690
contents: write

.github/workflows/build-awscrt.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ env:
2727
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
2828

2929
jobs:
30+
setup:
31+
uses: $/.github/workflows/_setup.yml
32+
3033
build_wheels:
34+
needs: [setup]
3135
name: Build awscrt ${{ inputs.version || '0.36.2' }} ${{ matrix.wheel_tag }}-manylinux_riscv64
3236
runs-on: ubuntu-24.04-riscv
3337
timeout-minutes: 360
@@ -103,7 +107,7 @@ jobs:
103107

104108
publish:
105109
name: Publish awscrt ${{ inputs.version || '0.36.2' }} to GitLab
106-
needs: [build_wheels]
110+
needs: [setup, build_wheels]
107111
runs-on: ubuntu-latest
108112
permissions:
109113
contents: write

.github/workflows/build-bcrypt.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ env:
3333
ABI3_FLOOR: cp312
3434

3535
jobs:
36-
# Build the sdist ourselves from the tag (never the prebuilt PyPI sdist); it's
37-
# arch-independent, so build it once on x86 (gotcha 4).
36+
setup:
37+
uses: $/.github/workflows/_setup.yml
38+
3839
build_sdist:
40+
needs: [setup]
3941
name: Build bcrypt ${{ inputs.version || '5.0.0' }} sdist
4042
runs-on: ubuntu-latest
4143
outputs:
@@ -81,7 +83,7 @@ jobs:
8183
# One cp312-abi3 wheel: cibuildwheel builds it once and reuses+tests it on
8284
# cp313/cp314 (find_compatible_wheel), so all three tags share one wheel.
8385
build_abi3:
84-
needs: [build_sdist]
86+
needs: [setup, build_sdist]
8587
name: Build bcrypt ${{ inputs.version || '5.0.0' }} cp312-abi3-manylinux_riscv64
8688
runs-on: ubuntu-24.04-riscv
8789
timeout-minutes: 90
@@ -121,7 +123,7 @@ jobs:
121123
# Free-threaded wheel: per-interpreter, no abi3 (pyo3 disables abi3 under
122124
# Py_GIL_DISABLED). Only cp314t - the riscv64 image has no cp313t interpreter.
123125
build_freethreaded:
124-
needs: [build_sdist]
126+
needs: [setup, build_sdist]
125127
name: Build bcrypt ${{ inputs.version || '5.0.0' }} cp314t-manylinux_riscv64
126128
runs-on: ubuntu-24.04-riscv
127129
timeout-minutes: 90
@@ -155,7 +157,7 @@ jobs:
155157

156158
publish:
157159
name: Publish bcrypt ${{ inputs.version || '5.0.0' }} to GitLab
158-
needs: [build_sdist, build_abi3, build_freethreaded]
160+
needs: [setup, build_sdist, build_abi3, build_freethreaded]
159161
runs-on: ubuntu-latest
160162
permissions:
161163
contents: write

.github/workflows/build-biopython.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ env:
2828
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
2929

3030
jobs:
31+
setup:
32+
uses: $/.github/workflows/_setup.yml
33+
3134
build_wheels:
35+
needs: [setup]
3236
name: Build biopython ${{ inputs.version || '1.88' }} ${{ matrix.python }}-manylinux_riscv64
3337
runs-on: ubuntu-24.04-riscv
3438
timeout-minutes: 120
@@ -92,7 +96,7 @@ jobs:
9296

9397
publish:
9498
name: Publish biopython ${{ inputs.version || '1.88' }} to GitLab
95-
needs: [build_wheels]
99+
needs: [setup, build_wheels]
96100
runs-on: ubuntu-latest
97101
permissions:
98102
contents: write

0 commit comments

Comments
 (0)