Skip to content

Commit b5095ba

Browse files
committed
Fix codecov configuration
1 parent 0f67041 commit b5095ba

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.github/workflows/tox.yml

+5
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ jobs:
101101
- name: tox -e ${{ matrix.passed_name }}
102102
run: python3 -m tox -e ${{ matrix.passed_name }}
103103

104+
- name: Combine coverage data
105+
if: ${{ startsWith(matrix.passed_name, 'py') }}
106+
# produce a single .coverage file at repo root
107+
run: tox -e coverage
108+
104109
- name: Upload coverage data
105110
if: ${{ startsWith(matrix.passed_name, 'py') }}
106111
uses: codecov/[email protected]

codecov.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ codecov:
33
require_ci_to_pass: true
44
comment: false
55
coverage:
6+
range: 43..100
67
status:
78
patch: false
8-
project:
9-
default:
10-
threshold: 0.3%

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ source = ["src", ".tox/*/site-packages"]
4949
[tool.coverage.report]
5050
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
5151
# Increase it just so it would pass on any single-python run
52-
fail_under = 44
52+
fail_under = 43
5353
skip_covered = true
5454
skip_empty = true
5555
# During development we might remove code (files) with coverage data, and we dont want to fail:
@@ -132,7 +132,7 @@ required-version = "0.0.292"
132132
select = ["ALL"]
133133
ignore = [
134134
"E501", # we use black
135-
# temporary disabled until we fix them:
135+
# temporary disabled until we fix them:
136136
"ANN",
137137
"ARG",
138138
"B",

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ commands_pre =
110110
commands =
111111
python3 -m coverage --version
112112
# needed by codecov github actions, also ignored result to reach report one.
113-
python3 -m coverage xml --fail-under=0
113+
python3 -m coverage xml
114114
# just for humans running it:
115115
python3 -m coverage report
116116
deps =

0 commit comments

Comments
 (0)