File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ jobs:
491491 - build-windows
492492 - build-macos-arm
493493 - build-macos-intel
494- if : true
494+ if : ${{ always() && true }} # Run even if some build jobs failed
495495 defaults :
496496 run :
497497 shell : bash
@@ -529,12 +529,29 @@ jobs:
529529 with :
530530 name : ${{ steps.artifact-name.outputs.name }}
531531 path : wheels/
532+ continue-on-error : true # Continue even if no artifact found
533+
534+ - name : Check wheels presence
535+ id : wheels-presence
536+ run : |
537+ shopt -s nullglob
538+ files=(wheels/*.whl)
539+ if (( ${#files[@]} > 0 )); then
540+ echo "found=true" >> $GITHUB_OUTPUT
541+ ls -al wheels/
542+ else
543+ echo "found=false" >> $GITHUB_OUTPUT
544+ echo "No wheel artifacts found for ${{ matrix.os }}" 1>&2
545+ echo "::warning title=No wheels found::${{ matrix.os }} / Python ${{ matrix.python-version }} — skipping tests"
546+ fi
532547
533548 - name : Setup tests
549+ if : steps.wheels-presence.outputs.found == 'true'
534550 run : |
535551 just setup-tests
536552
537553 - name : Run tests
554+ if : steps.wheels-presence.outputs.found == 'true'
538555 run : |
539556 just test-package -v
540557
You can’t perform that action at this time.
0 commit comments