Skip to content

Commit d6b9dab

Browse files
committed
ci: have action to create code coverage badge
1 parent 997e009 commit d6b9dab

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/unit-test.yml

Lines changed: 8 additions & 2 deletions
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.8, 3.9, 3.11]
18+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1919

2020
steps:
2121
- uses: actions/checkout@v3
@@ -41,7 +41,7 @@ jobs:
4141
poetry run coverage run -m pytest
4242
poetry run coverage report -m --omit "*/site-packages/*.py",*/tests/*
4343
poetry run coverage html --omit "*/site-packages/*.py",*/tests/*
44-
poetry run coverage xml
44+
poetry run coverage xml --omit "*/site-packages/*.py"
4545
4646
- name: Code Coverage Summary Report
4747
uses: irongut/CodeCoverageSummary@v1.3.0
@@ -59,3 +59,9 @@ jobs:
5959
- name: Write to Job Summary
6060
run: |
6161
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
62+
63+
- name: Create test coverage badge
64+
uses: gaelgirodon/ci-badges-action@v1
65+
with:
66+
gist-id: 6ab639b6f9d1f6161d3db52d348d2997
67+
token: ${{ secrets.GIST_TOKEN_SW360PYTHON }}

0 commit comments

Comments
 (0)