File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments