|
99 | 99 | run: | |
100 | 100 | pytest -v || if [ $? -eq 5 ]; then exit 0; else exit $?; fi |
101 | 101 |
|
| 102 | + # Job 3.1: Test Suite - UV Workflow - Complete |
| 103 | + # This creates a single check that passes only when all matrix jobs pass |
| 104 | + test-uv-complete: |
| 105 | + if: always() && needs.detect-test-strategy.outputs.use_pixi == 'false' |
| 106 | + needs: [detect-test-strategy, test-uv] |
| 107 | + runs-on: ubuntu-latest |
| 108 | + steps: |
| 109 | + - name: Check test-uv status |
| 110 | + run: | |
| 111 | + if [ "${{ needs.test-uv.result }}" == "success" ] || [ "${{ needs.test-uv.result }}" == "skipped" ]; then |
| 112 | + echo "All test-uv jobs passed!" |
| 113 | + exit 0 |
| 114 | + else |
| 115 | + echo "Some test-uv jobs failed" |
| 116 | + exit 1 |
| 117 | + fi |
| 118 | +
|
102 | 119 | # Job 4: Test Suite - Pixi Workflow |
103 | 120 | # Pixi-based testing for projects using pixi.toml |
104 | 121 | test-pixi: |
@@ -136,6 +153,23 @@ jobs: |
136 | 153 | run: | |
137 | 154 | pixi run -e ${{ matrix.environment }} test || if [ $? -eq 5 ]; then exit 0; else exit $?; fi |
138 | 155 |
|
| 156 | + # Job 4.1: Test Suite - Pixi Workflow - Complete |
| 157 | + # This creates a single check that passes only when all matrix jobs pass |
| 158 | + test-pixi-complete: |
| 159 | + if: always() && needs.detect-test-strategy.outputs.use_pixi == 'true' |
| 160 | + needs: [detect-test-strategy, test-pixi] |
| 161 | + runs-on: ubuntu-latest |
| 162 | + steps: |
| 163 | + - name: Check test-pixi status |
| 164 | + run: | |
| 165 | + if [ "${{ needs.test-pixi.result }}" == "success" ] || [ "${{ needs.test-pixi.result }}" == "skipped" ]; then |
| 166 | + echo "All test-pixi jobs passed!" |
| 167 | + exit 0 |
| 168 | + else |
| 169 | + echo "Some test-pixi jobs failed" |
| 170 | + exit 1 |
| 171 | + fi |
| 172 | +
|
139 | 173 | # Job 5: Build Verification |
140 | 174 | # Ensures the package can be built successfully |
141 | 175 | build: |
|
0 commit comments