Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code coverage added in workflows #316

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,39 @@ jobs:
- name: Run pytest
working-directory: python
run: poetry run pytest tests -m "not slow"

- name: Code Coverage Report

uses: irongut/[email protected]

with:

filename: coverage/**/coverage.cobertura.xml

badge: true

fail_below_min: true

format: markdown

hide_branch_rate: false

hide_complexity: true

indicators: true

output: both

thresholds: '60 80'

- name: Add Coverage PR Comment
invernizzi marked this conversation as resolved.
Show resolved Hide resolved

uses: marocchino/sticky-pull-request-comment@v2

if: github.event_name == 'pull_request'

with:

recreate: true

path: code-coverage-results.md