Skip to content

Commit cc44a88

Browse files
committed
ci: debug coverage sumary
1 parent 41472b6 commit cc44a88

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,21 @@ jobs:
388388
PYTHON_VERSION: ${{ matrix.python-version }}
389389
run: |
390390
echo "## Python ${PYTHON_VERSION} Coverage" >> $GITHUB_STEP_SUMMARY
391-
poetry run coverage report --data-file=coverage/.coverage.${PYTHON_VERSION} --format=markdown >> $GITHUB_STEP_SUMMARY
391+
392+
# Debug: Check coverage version and file existence
393+
echo "Coverage version:"
394+
poetry run coverage --version
395+
396+
echo "Checking coverage data file:"
397+
ls -la coverage/.coverage.${PYTHON_VERSION} || echo "Coverage data file not found"
398+
399+
# Generate the report
400+
poetry run coverage report --data-file=coverage/.coverage.${PYTHON_VERSION} --format=markdown >> $GITHUB_STEP_SUMMARY || {
401+
echo "Failed to generate markdown report, trying without --format flag"
402+
echo '```' >> $GITHUB_STEP_SUMMARY
403+
poetry run coverage report --data-file=coverage/.coverage.${PYTHON_VERSION} >> $GITHUB_STEP_SUMMARY
404+
echo '```' >> $GITHUB_STEP_SUMMARY
405+
}
392406
audit-prod:
393407
name: Audit - Production
394408
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)