Skip to content

Commit 318c3b3

Browse files
committed
Fix codecov configuration
1 parent 0f67041 commit 318c3b3

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -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)