Skip to content

Commit d16d671

Browse files
committed
test
1 parent 5afaf53 commit d16d671

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/scripts/tests_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ function run_test() {
8484
fi
8585

8686
echo "pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args"
87-
bash -c "pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args"
88-
result=$?
87+
bash -c "set +e ; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args ; exit \$?" || result=$?
88+
echo "Test $sketchname return code: $result"
8989
if [ $result -ne 0 ]; then
9090
error=$result
9191
fi

.github/workflows/wokwi.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,15 @@ jobs:
4141
# tests/**/*.xml
4242
# tests/**/result_*.json
4343

44+
- uses: LIT-Protocol/artifact-exists-action@v0
45+
id: check-artifact
46+
with:
47+
name: "tests-results-wokwi-${{ inputs.chip }}-${{ inputs.type }}"
48+
4449
- name: Evaluate if tests should be run
4550
id: check-tests
4651
run: |
52+
echo "Artifact exists: ${{ steps.check-artifact.outputs.exists }}"
4753
cache_exists=${{ steps.get-cache-results.outputs.cache-hit == 'true' || false }}
4854
enabled=true
4955

0 commit comments

Comments
 (0)