Skip to content

Commit

Permalink
Merge pull request #17 from amila-desilva/demo/github_demo2
Browse files Browse the repository at this point in the history
Testing new coverage tool
  • Loading branch information
amila-desilva authored Jul 17, 2024
2 parents 58a1d0b + 82413b9 commit 01da21f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
relative_files=True
8 changes: 5 additions & 3 deletions .github/workflows/pytest-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
coverage:
name: PyTest coverage
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
- name: Install python
Expand All @@ -26,7 +29,6 @@ jobs:
- name: Run Coverage
run: $POETRY run coverage xml
- name: Get Cover
uses: orgoro/coverage@v3.1
uses: py-cov-action/python-coverage-comment-action@v3
with:
coverageFile: ./coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 01da21f

Please sign in to comment.