Skip to content

Commit 76a2df9

Browse files
committed
CI: Change to run tests even after build failures
1 parent a951b79 commit 76a2df9

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)