Skip to content

Commit 0cdc3a5

Browse files
authored
[3.11] Introduce a gate/check GHA job (GH-97533) (#107115)
(cherry picked from commit e7cd557)
1 parent afa24d5 commit 0cdc3a5

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,60 @@ jobs:
439439
run: make pythoninfo
440440
- name: Tests
441441
run: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
442+
443+
all-required-green: # This job does nothing and is only used for the branch protection
444+
name: All required checks pass
445+
if: always()
446+
447+
needs:
448+
- check_source # Transitive dependency, needed to access `run_tests` value
449+
- check-docs
450+
- check_generated_files
451+
- build_win32
452+
- build_win_amd64
453+
- build_macos
454+
- build_ubuntu
455+
- build_ubuntu_ssltests
456+
- test_hypothesis
457+
- build_asan
458+
459+
runs-on: ubuntu-latest
460+
461+
steps:
462+
- name: Check whether the needed jobs succeeded or failed
463+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe
464+
with:
465+
allowed-failures: >-
466+
build_macos,
467+
build_ubuntu_ssltests,
468+
build_win32,
469+
test_hypothesis,
470+
allowed-skips: >-
471+
${{
472+
!fromJSON(needs.check_source.outputs.run-docs)
473+
&& '
474+
check-docs,
475+
'
476+
|| ''
477+
}}
478+
${{
479+
needs.check_source.outputs.run_tests != 'true'
480+
&& '
481+
check_generated_files,
482+
build_win32,
483+
build_win_amd64,
484+
build_macos,
485+
build_ubuntu,
486+
build_ubuntu_ssltests,
487+
build_asan,
488+
'
489+
|| ''
490+
}}
491+
${{
492+
!fromJSON(needs.check_source.outputs.run_hypothesis)
493+
&& '
494+
test_hypothesis,
495+
'
496+
|| ''
497+
}}
498+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)