3838permissions : read-all
3939
4040concurrency :
41- # Cancel any previously-started but still active runs on the same branch.
4241 cancel-in-progress : true
4342 group : ${{github.workflow}}-${{github.event.pull_request.number||github.ref}}
4443
@@ -48,10 +47,12 @@ jobs:
4847 uses : ./.github/workflows/_find_changes.yaml
4948 secrets : inherit
5049
51- build-library :
52- name : Build for ${{matrix.conf.os}}/${{matrix.conf.pyarch}}/py3${{matrix.conf.py}}
50+ run-tests :
51+ if : ${{needs.find-changes.outputs.code == 'true' || inputs.debug}}
52+ name : Run tests
5353 needs : find-changes
5454 runs-on : ${{matrix.conf.os}}
55+ continue-on-error : true
5556 timeout-minutes : 30
5657 strategy :
5758 fail-fast : false
8384 {os: windows-2025, pyarch: x64, py: 13},
8485 ]
8586 env :
86- # Must use explicit test for true so it works when inputs.debug is null.
87- use-verbose : ${{github.event.inputs.debug == true}}
87+ use-verbose : ${{inputs.debug}}
8888 steps :
8989 - if : >-
9090 ${{needs.find-changes.outputs.code == 'false'
@@ -125,7 +125,7 @@ jobs:
125125 - if : matrix.conf.os != 'windows-2025'
126126 name : Run the build and test script (non-Windows case)
127127 env :
128- # Add xtrace to SHELLOPTS for all Bash scripts when doing debug runs.
128+ # Add xtrace to SHELLOPTS for all Bash scripts when doing debug runs.
129129 SHELLOPTS : ${{inputs.debug && 'xtrace' || '' }}
130130 run : dev_tools/test_libs.sh ${{env.use-verbose && '--config=verbose'}}
131131
@@ -140,3 +140,15 @@ jobs:
140140 SHELLOPTS : ${{env.use-verbose && 'xtrace' || '' }}
141141 shell : cmd
142142 run : bash -x dev_tools/test_libs.sh ${{env.use-verbose && '--config=verbose'}} --action_env PYTHON_BIN_PATH=${{env.pyroot}}\\${{env.pyexe}}
143+
144+ report-results :
145+ if : always()
146+ name : ${{github.workflow}}
147+ needs : run-tests
148+ runs-on : ubuntu-24.04
149+ timeout-minutes : 2
150+ steps :
151+ - name : Exit with an appropriate status code
152+ run : |
153+ result="${{needs.run-tests.result}}"
154+ [[ "$result" == "success" || "$result" == "skipped" ]]
0 commit comments