Skip to content

Commit 69f011d

Browse files
committed
Trying to fix pipeline
1 parent 0a54d29 commit 69f011d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/unit_tests.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ jobs:
4949
run: |
5050
timestamp=$(date '+%Y-%m-%d_%H-%M-%S')
5151
mkdir -p test_results
52-
PYTHONPATH=$(pwd) python -m coverage run --source=src -m unittest discover -v tests/
53-
coverage report > test_results/${{ env.output_folder }}_latest_report.log
54-
coverage report >> test_results/${{ env.output_folder }}_${timestamp}_report.log
52+
log_file="test_results/${{ env.output_folder }}_${timestamp}_report.log"
53+
# Run the tests and append output to the log file
54+
PYTHONPATH=$(pwd) python -m coverage run --source=src -m unittest discover -v tests/ >> $log_file 2>&1
55+
# Append the coverage summary to the log file
56+
coverage report >> $log_file
5557
5658
- name: Upload report to Azure
5759
uses: LanceMcCarthy/Action-AzureBlobUpload@v2

0 commit comments

Comments
 (0)