From 90749aebf0da7a150369c104eba9659f0b6cda60 Mon Sep 17 00:00:00 2001 From: Harry Arakkal Date: Fri, 22 Sep 2023 09:36:03 -0600 Subject: [PATCH] config/bug/show_test_logs_in_summary_and_details --- .github/workflows/python-unittest.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]}