Skip to content

Commit

Permalink
Merge pull request #7 from bosenqu/bosenqu/update-coverage-report-sum…
Browse files Browse the repository at this point in the history
…mary-format

Update CI summary coverage report format
  • Loading branch information
bosenqu authored Dec 30, 2023
2 parents af7fa3e + 98b88b6 commit 5daea5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
- name: Add coverage report to summary
run: |
echo "**Test Coverage Report**" >> $GITHUB_STEP_SUMMARY
cat reports/coverage_report.md >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
cat reports/coverage_report.txt >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test-ci:
-m behave -v --junit --junit-directory=$(REPORTS)/feature_tests
$(PYTHON) -m coverage combine $(REPORTS)/*/*.dat
$(PYTHON) -m coverage xml
$(PYTHON) -m coverage report --format=markdown > $(REPORTS)/coverage_report.md
$(PYTHON) -m coverage report > $(REPORTS)/coverage_report.txt

# Run isort, ruff, and reformat-gherkin formatter
.PHONNY: format
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ testpaths = ["tests/unit"]
[tool.coverage.run]
source = ["src"]

[tool.coverage.report]
show_missing = true

[tool.mypy]
exclude = ["steps.py"]
strict = true
Expand Down

0 comments on commit 5daea5e

Please sign in to comment.