Skip to content

Commit

Permalink
Merge pull request #101 from kayjan/add-pr-comment-workflow
Browse files Browse the repository at this point in the history
Update codecov.yml
  • Loading branch information
kayjan authored Oct 15, 2023
2 parents efd4062 + 07697c4 commit 50a2ff7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ on:
jobs:
build-linux:
runs-on: ubuntu-latest
permissions:
pull-requests: write
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.11"]
fail-fast: false

steps:
Expand All @@ -35,6 +37,20 @@ jobs:
python -m pip install pytest
python -m pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Converage coverage report
uses: irongut/[email protected]
with:
filename: coverage.xml
badge: true
format: markdown
indicators: true
output: both
- name: Upload coverage to PR comment
if: ${{ github.event_name == 'pull_request' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: code-coverage-results.md
- name: Upload coverage to Codecov
if: ${{ github.event_name == 'push' }}
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 50a2ff7

Please sign in to comment.