Skip to content

Commit f19a563

Browse files
committed
ci(qemu): Fix skips
1 parent a5c7c8d commit f19a563

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/hil.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,23 @@ jobs:
141141
uses: actions/download-artifact@v4
142142
with:
143143
name: ${{matrix.chip}}-${{matrix.chunks}}.artifacts
144-
path: ~/.arduino/tests/
144+
path: ~/
145145

146146
- name: Run Tests
147147
run: QEMU_PATH="${{env.QEMU_PATH}}" bash .github/scripts/tests_run.sh -c -t ${{matrix.chip}} -i ${{matrix.chunks}} -m ${{env.MAX_CHUNKS}} -q
148148

149+
- name: Check if tests were skipped
150+
id: check-test-skipped
151+
run: |
152+
if [ $(find "tests" -name ".test_skipped") ]; then
153+
echo "skipped=true" >> $GITHUB_OUTPUT
154+
else
155+
echo "skipped=false" >> $GITHUB_OUTPUT
156+
fi
157+
149158
- name: Upload test result artifacts
150159
uses: actions/upload-artifact@v4
151-
if: always()
160+
if: ${{ always() && steps.check-test-skipped.outputs.skipped == 'false' }}
152161
with:
153162
name: qemu_results-${{matrix.chip}}-${{matrix.chunks}}
154163
path: tests/*/*.xml

0 commit comments

Comments
 (0)