Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed May 26, 2024
1 parent 460c0c0 commit d9a4c51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/tests_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function run_test() {

result=0
echo "pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args"
bash -c "set +e; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args; exit \$?" || result=$?
bash -c "set +e ; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args ; exit \$?" || result=$?
echo "Test $sketchname return code: $result"
if [ $result -ne 0 ]; then
error=$result
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/wokwi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ jobs:
# tests/**/*.xml
# tests/**/result_*.json

- uses: LIT-Protocol/artifact-exists-action@v0
id: check-artifact
with:
name: "tests-results-wokwi-${{ inputs.chip }}-${{ inputs.type }}"

- name: Evaluate if tests should be run
id: check-tests
run: |
echo "Artifact exists: ${{ steps.check-artifact.outputs.exists }}"
cache_exists=${{ steps.get-cache-results.outputs.cache-hit == 'true' || false }}
enabled=true
Expand Down

0 comments on commit d9a4c51

Please sign in to comment.