File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -519,3 +519,60 @@ jobs:
519519 run : make pythoninfo
520520 - name : Tests
521521 run : xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
522+
523+ all-required-green : # This job does nothing and is only used for the branch protection
524+ name : All required checks pass
525+ if : always()
526+
527+ needs :
528+ - check_source # Transitive dependency, needed to access `run_tests` value
529+ - check-docs
530+ - check_generated_files
531+ - build_win32
532+ - build_win_amd64
533+ - build_macos
534+ - build_ubuntu
535+ - build_ubuntu_ssltests
536+ - test_hypothesis
537+ - build_asan
538+
539+ runs-on : ubuntu-latest
540+
541+ steps :
542+ - name : Check whether the needed jobs succeeded or failed
543+ uses : re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe
544+ with :
545+ allowed-failures : >-
546+ build_macos,
547+ build_ubuntu_ssltests,
548+ build_win32,
549+ test_hypothesis,
550+ allowed-skips : >-
551+ ${{
552+ !fromJSON(needs.check_source.outputs.run-docs)
553+ && '
554+ check-docs,
555+ '
556+ || ''
557+ }}
558+ ${{
559+ needs.check_source.outputs.run_tests != 'true'
560+ && '
561+ check_generated_files,
562+ build_win32,
563+ build_win_amd64,
564+ build_macos,
565+ build_ubuntu,
566+ build_ubuntu_ssltests,
567+ build_asan,
568+ '
569+ || ''
570+ }}
571+ ${{
572+ !fromJSON(needs.check_source.outputs.run_hypothesis)
573+ && '
574+ test_hypothesis,
575+ '
576+ || ''
577+ }}
578+ jobs : ${{ toJSON(needs) }}
You can’t perform that action at this time.
0 commit comments