File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -200,13 +200,14 @@ jobs:
200200 # The job name should match the name of the `nox-cross-arch` job.
201201 name : Cross-arch tests with nox
202202 needs : ["nox-cross-arch"]
203- if : always() && contains(needs.*.result, 'failure')
203+ # We skip this job only if nox-cross-arch was also skipped
204+ if : always() && needs.nox-cross-arch.result != 'skipped'
204205 runs-on : ubuntu-20.04
206+ env :
207+ DEPS_RESULT : ${{ needs.nox-cross-arch.result }}
205208 steps :
206- - name : Fail because some cross-arch tests failed
207- run : |
208- echo "Error: Some cross-arch tests failed"
209- exit 1
209+ - name : Check matrix job result
210+ run : test "$DEPS_RESULT" = "success"
210211
211212 build :
212213 name : Build distribution packages
You can’t perform that action at this time.
0 commit comments