Skip to content

Commit 50a2ff7

Browse files
authored
Merge pull request #101 from kayjan/add-pr-comment-workflow
Update codecov.yml
2 parents efd4062 + 07697c4 commit 50a2ff7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/codecov.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ on:
1010
jobs:
1111
build-linux:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: write
1315
strategy:
1416
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
17+
python-version: ["3.11"]
1618
fail-fast: false
1719

1820
steps:
@@ -35,6 +37,20 @@ jobs:
3537
python -m pip install pytest
3638
python -m pip install pytest-cov
3739
pytest --cov=./ --cov-report=xml
40+
- name: Converage coverage report
41+
uses: irongut/CodeCoverageSummary@v1.3.0
42+
with:
43+
filename: coverage.xml
44+
badge: true
45+
format: markdown
46+
indicators: true
47+
output: both
48+
- name: Upload coverage to PR comment
49+
if: ${{ github.event_name == 'pull_request' }}
50+
uses: marocchino/sticky-pull-request-comment@v2
51+
with:
52+
recreate: true
53+
path: code-coverage-results.md
3854
- name: Upload coverage to Codecov
3955
if: ${{ github.event_name == 'push' }}
4056
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)