Skip to content

Commit

Permalink
Add codecov flags to split coverage of subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Mar 19, 2024
1 parent 8735b2e commit abfd2d5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,5 @@ jobs:
with:
files: coverage.xml
name: python
flags: python
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/ci-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@ jobs:
with:
files: coverage.json
name: rust
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
flags: rust
token: ${{ secrets.CODECOV_TOKEN }}
25 changes: 25 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Codecov coverage report configuration

# Coverage report
# Do not fail if the coverage is not met
coverage:
status:
patch:
default:
informational: false
only_pulls: true
project:
default:
informational: true

# Ignore tests and binaries
ignore:
- "quantinuum-hugr-py/tests"

# Coverage groups config
flag_management:
default_rules: # the rules that will be followed for any flag added, generally
# Use previous coverage if one is not available for the current commit.
#
# (E.g. if the PR doesn't modify a subproject, we don't submit a coverage report for it.)
carryforward: true

0 comments on commit abfd2d5

Please sign in to comment.