Skip to content

Commit e9b34c8

Browse files
[ci] Add a collector job for the nox-cross-arch job matrix
This job runs if `nox-cross-arch` ran and succeeded. This is required because, when the `nox-cross-arch` job is skipped, its inner matrix is not expanded, and branch protection rules on the inner-matrix jobs get stuck. So instead of `nox-cross-arch`, this job can be used in the branch protection rules. Signed-off-by: Tiyash Basu <[email protected]>
1 parent e92c18b commit e9b34c8

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,22 @@ jobs:
172172
if: always()
173173
run: sudo chown -R $USER:$USER /tmp/pip-cache
174174

175+
# This job runs if `nox-cross-arch` ran and succeeded.
176+
# This is required because, when the `nox-cross-arch` job is skipped, its
177+
# inner matrix is not expanded, and branch protection rules on the
178+
# inner-matrix jobs get stuck. So instead of `nox-cross-arch`, this job can be
179+
# used in the branch protection rules.
180+
# At the time of writing this, there is an ongoing discussion about this here:
181+
# https://github.com/orgs/community/discussions/9141
182+
nox-cross-arch-all:
183+
name: Cross-arch tests with nox
184+
needs: ["nox-cross-arch"]
185+
runs-on: ubuntu-20.04
186+
steps:
187+
- name: Return true
188+
run: true
189+
190+
175191
build:
176192
name: Build distribution packages
177193
runs-on: ubuntu-20.04
@@ -269,7 +285,7 @@ jobs:
269285

270286
publish-docs:
271287
name: Publish documentation website to GitHub pages
272-
needs: ["nox", "nox-cross-arch", "test-installation"]
288+
needs: ["nox", "nox-cross-arch-all", "test-installation"]
273289
if: github.event_name == 'push'
274290
runs-on: ubuntu-20.04
275291
permissions:

0 commit comments

Comments
 (0)