diff --git a/.github/workflows/python-unittest.yml b/.github/workflows/python-unittest.yml index 2ddf402..6f7574d 100644 --- a/.github/workflows/python-unittest.yml +++ b/.github/workflows/python-unittest.yml @@ -28,5 +28,6 @@ jobs: - name: Test with unittest run: | # Store output in GITHUB_STEP_SUMMARY for easy reading on Github.com - python -m unittest -v $GITHUB_WORKSPACE/tests/*.py &> $GITHUB_STEP_SUMMARY - cat $GITHUB_STEP_SUMMARY + python -m unittest -v $GITHUB_WORKSPACE/tests/*.py 2>&1 | tee $GITHUB_STEP_SUMMARY + # If python test fails, we want the step to fail. + exit ${PIPESTATUS[0]}