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