Skip to content

Commit 5bd9b86

Browse files
authored
Merge pull request #5734 from psafont/upcodecov
2 parents f25cee6 + bbdceb3 commit 5bd9b86

File tree

2 files changed

+11
-30
lines changed

2 files changed

+11
-30
lines changed

.codecov.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,7 @@ coverage:
168168
# - excluding: **/test_*.py
169169
#
170170
paths: ["python3/**", "!**/test_*.py"]
171-
172-
#
173-
# For python3/** (excluding tests):
174-
#
175-
# For python3, coverage should not be reduced compared to its base:
176-
#
177-
target: auto
171+
target: 80%
178172

179173
#
180174
# Exception: the threshold value given is allowed
@@ -183,12 +177,6 @@ coverage:
183177
#
184178
threshold: 20%
185179

186-
# Checks each Python version separately:
187-
python-3.11:
188-
flags: ["python3.11"]
189-
python-2.7:
190-
flags: ["python2.7"]
191-
192180
#
193181
# Project limits
194182
# --------------
@@ -218,7 +206,7 @@ coverage:
218206
tests:
219207
# Ensure that all tests are executed (tests themselves must be 100% covered)
220208
target: 98%
221-
paths: ["**/test_*.py"]
209+
paths: ["python3/tests/test_*.py"]
222210

223211

224212
#
@@ -235,24 +223,15 @@ component_management:
235223
- type: project
236224
# `auto` will use the coverage from the base commit (pull request base
237225
# or parent commit) coverage to compare against.
238-
target: auto
226+
target: 48
239227
threshold: 2%
240228

241229
- type: patch
242-
target: auto
243-
threshold: 10%
230+
target: 80
231+
threshold: 5%
244232

245233
individual_components:
246234

247-
- component_id: scripts # this is an identifier that should not be changed
248-
name: scripts # this is a display name, and can be changed freely
249-
# The list of paths that should be in- and excluded in this component:
250-
paths: ["scripts/**", "!scripts/examples/**", "!**/test_*.py"]
251-
252-
- component_id: scripts/examples
253-
name: scripts/examples
254-
paths: ["scripts/examples/**", "!scripts/**/test_*.py"]
255-
256235
- component_id: ocaml
257236
name: ocaml
258237
paths: ["ocaml/**", "!**/test_*.py"]
@@ -270,4 +249,5 @@ component_management:
270249

271250
- component_id: test_cases
272251
name: test_cases
273-
paths: ["**/test_*.py"]
252+
paths: ["python3/tests/test_*.py"]
253+

.github/workflows/other.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,15 @@ jobs:
8181
PYTHONDEVMODE: yes
8282

8383
- name: Upload Python ${{matrix.python-version}} coverage report to Codecov
84-
uses: codecov/codecov-action@v3
84+
uses: codecov/codecov-action@v4
8585
with:
8686
directory: .git
87-
files: coverage${{matrix.python-version}}.xml
88-
env_vars: OS,PYTHON
8987
fail_ci_if_error: false
88+
env_vars: OS,PYTHON
89+
files: coverage${{matrix.python-version}}.xml
9090
flags: python${{matrix.python-version}}
9191
name: coverage${{matrix.python-version}}
92+
use_oidc: true
9293
verbose: true
9394

9495
- uses: dciborow/action-pylint@0.1.0

0 commit comments

Comments
 (0)