Skip to content

Commit 77b54ec

Browse files
committed
combine coverage
1 parent 3b36d98 commit 77b54ec

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
coverage:
2+
precision: 2
3+
round: down
4+
status:
5+
project:
6+
default:
7+
target: auto
8+
threshold: 5
9+
type: project
10+
base: auto
11+
paths:
12+
- "filter_functions"
13+
branches:
14+
- master

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ name = "filter_functions"
77
description = "Package for efficient calculation of generalized filter functions"
88
readme = "README.md"
99
requires_python = ">= 3.9"
10-
license = {file = "LICENSE"}
10+
license = { file = "LICENSE" }
1111
dynamic = ["version"]
1212
authors = [
13-
{name = "Tobias Hangleiter", email = "tobias.hangleiter@rwth-aachen.de"},
14-
{name = "Quantum Technology Group, RWTH Aachen University"},
13+
{ name = "Tobias Hangleiter", email = "tobias.hangleiter@rwth-aachen.de" },
14+
{ name = "Quantum Technology Group, RWTH Aachen University" },
1515
]
1616
classifiers = [
1717
"Programming Language :: Python :: 3 :: Only",
@@ -86,13 +86,17 @@ build = [
8686

8787
[tool.pytest.ini_options]
8888
minversion = "4.6"
89-
addopts = "-ra --verbose --cov=filter_functions --cov-report=xml --junitxml=junit.xml -o junit_family=legacy"
89+
addopts = """
90+
-ra --verbose \
91+
--cov=filter_functions --cov-report=xml --cov-append \
92+
--junitxml=junit.xml -o junit_family=legacy"""
9093
testpaths = [
9194
"tests"
9295
]
9396

9497
[tool.coverage.run]
9598
branch = true
99+
parallel = true # each job creates a unique .coverage file, all of which are then combined by --cov-append
96100
omit = ["tests/*", "*/__init__.py"]
97101

98102
[tool.pylint.'MESSAGES CONTROL']

0 commit comments

Comments
 (0)