Skip to content

Commit f0e982f

Browse files
committed
test: Debug coverage combining step
1 parent 88a9cc8 commit f0e982f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)