File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,26 @@ jobs:
61
61
- name : Run
62
62
run : make coverage
63
63
64
+ check-static-and-test-status :
65
+ name : Check if all jobs passed
66
+ runs-on : ubuntu-latest
67
+ needs : [ static, test ] # Ensure all jobs complete before checking
68
+ if : always() # This ensures the job runs even if previous jobs failed
69
+
70
+ steps :
71
+ - name : Fail if any job failed
72
+ run : |
73
+ if [ "${{ needs.static.result }}" == "failure" ] || [ "${{ needs.test.result }}" == "failure" ]; then
74
+ echo "One or more jobs failed."
75
+ exit 1
76
+ else
77
+ echo "All jobs passed successfully."
78
+ fi
79
+
64
80
deploy :
65
81
name : Build and publish to PyPI
66
82
67
- needs : [ static, test ]
83
+ needs : check- static-and- test-status
68
84
69
85
if : contains(github.ref, 'tags/v')
70
86
You can’t perform that action at this time.
0 commit comments