Skip to content

Commit

Permalink
#153 - Test for unittest change
Browse files Browse the repository at this point in the history
  • Loading branch information
antaenc committed Jan 14, 2025
1 parent 3084b7d commit 97d61fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pytest-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ jobs:
# Use pytest to check examples, there are no "test" classes/functions, pytest imports the
# .py files, if there is an error in examples catches and raises similar to using unittest
# || true is to exit with code 0
# || if [ $? -eq 5 ]; then echo "exit code = 5"; true; else echo "exit code = $?"; false; fi
- name: Run pytest on examples
run: |
source ./venv/bin/activate
set +e
pytest examples/szconfig/ \
examples/szconfigmanager/ \
examples/szdiagnostic/ \
Expand All @@ -92,8 +94,10 @@ jobs:
examples/misc/ \
--capture=no \
-o python_files=*.py --ignore=examples/szengine/a_header_szengine.py --maxfail=1 \
--verbose \
|| if [ $? -eq 5 ]; then echo "exit code = 5"; true; else echo "exit code = $?"; false; fi
--verbose
exit_code="$?"
echo "exit code=$exit_code" >> $GITHUB_OUTPUT
if [ $exit_code -eq 5 ]; then exit 0; else exit "$exit_code"
- name: Rename coverage file
env:
Expand Down

0 comments on commit 97d61fc

Please sign in to comment.