Skip to content

Commit cb81b45

Browse files
committed
ci: have code coverage report
1 parent 2ff24b9 commit cb81b45

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/unit-test.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.11]
18+
python-version: [3.8, 3.9, 3.10, 3.11]
1919

2020
steps:
2121
- uses: actions/checkout@v3
@@ -42,3 +42,20 @@ jobs:
4242
poetry run coverage report -m --omit "*/site-packages/*.py",*/tests/*
4343
poetry run coverage html --omit "*/site-packages/*.py",*/tests/*
4444
poetry run coverage xml
45+
46+
- name: Code Coverage Summary Report
47+
uses: irongut/CodeCoverageSummary@v1.3.0
48+
with:
49+
filename: coverage.xml
50+
badge: true
51+
fail_below_min: true
52+
format: markdown
53+
hide_branch_rate: false
54+
hide_complexity: true
55+
indicators: true
56+
output: both
57+
thresholds: '50 75'
58+
59+
- name: Write to Job Summary
60+
run: |
61+
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)