File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,7 @@ jobs:
413413 set -euo pipefail
414414
415415 # Collect all .coverage files from artifact subdirectories
416+ echo "Collecting coverage files from artifact subdirectories"
416417 shopt -s nullglob
417418 coverage_files=(coverage-artifacts/*/.coverage)
418419
@@ -428,14 +429,23 @@ jobs:
428429 mkdir -p coverage-data
429430 i=0
430431 for file in "${coverage_files[@]}"; do
432+ echo "Copying $file to coverage-data/.coverage.$i"
431433 cp "$file" "coverage-data/.coverage.$i"
432434 ((i++))
433435 done
434436
435437 cd coverage-data
436- coverage combine
437- coverage xml -o coverage.xml
438- coverage report
438+ echo "Files in coverage-data:"
439+ ls -la
440+
441+ echo "Running coverage combine..."
442+ coverage combine || { echo "coverage combine failed"; exit 1; }
443+
444+ echo "Generating XML report..."
445+ coverage xml -o coverage.xml || { echo "coverage xml failed"; exit 1; }
446+
447+ echo "Generating text report..."
448+ coverage report || { echo "coverage report failed"; exit 1; }
439449
440450 echo "## Combined Coverage Report" >> $GITHUB_STEP_SUMMARY
441451 coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments