Skip to content

Commit 4aa545a

Browse files
committed
fix/simplify codecov config
1 parent 361008f commit 4aa545a

File tree

3 files changed

+18
-78
lines changed

3 files changed

+18
-78
lines changed

.codecov.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

backend/pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ maintainers = [
1313
keywords = ["OpenAPI", "Ibutsu"]
1414
requires-python = ">=3.9"
1515

16-
17-
1816
classifiers = [
1917
"Development Status :: 4 - Beta",
2018
"Framework :: Pytest",

codecov.yml

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,32 @@ codecov:
66
coverage:
77
precision: 2
88
round: down
9-
range: "50...100"
9+
range: "70...100"
1010

1111
status:
1212
project:
1313
default:
14-
target: auto
14+
target: 85%
1515
threshold: 1%
1616
if_ci_failed: error
1717

18+
backend:
19+
target: 85%
20+
threshold: 1%
21+
if_ci_failed: error
22+
flags:
23+
- backend
24+
25+
frontend:
26+
target: 85%
27+
threshold: 1%
28+
if_ci_failed: error
29+
flags:
30+
- frontend
31+
1832
patch:
1933
default:
20-
target: auto
34+
target: 85%
2135
threshold: 1%
2236
if_ci_failed: error
2337

@@ -26,50 +40,19 @@ flags:
2640
paths:
2741
- backend/ibutsu_server/
2842
carryforward: true
29-
target: 85%
30-
threshold: 0.5%
31-
32-
util:
33-
paths:
34-
- backend/ibutsu_server/util/
35-
carryforward: true
36-
target: 85%
37-
threshold: 0.5%
38-
39-
widgets:
40-
paths:
41-
- backend/ibutsu_server/widgets/
42-
carryforward: true
43-
target: 85%
44-
threshold: 0.5%
45-
46-
tasks:
47-
paths:
48-
- backend/ibutsu_server/tasks/
49-
carryforward: true
50-
target: 85%
51-
threshold: 0.5%
5243

5344
frontend:
5445
paths:
5546
- frontend/src/
5647
carryforward: true
57-
target: 7%
58-
threshold: 0.5%
5948

6049
comment:
6150
layout: "header, diff, flags, files, footer"
6251
behavior: default
6352
require_changes: false
64-
require_base: false
65-
require_head: true
66-
branches:
67-
- main
6853

6954
ignore:
70-
- "backend/ibutsu_server/test/**"
71-
- "backend/ibutsu_server/tests/**"
72-
- "backend/ibutsu_server/migrations/**"
55+
- "backend/tests/**"
7356
- "frontend/src/**/*.test.js"
7457
- "frontend/src/**/*.spec.js"
7558
- "frontend/src/setupTests.js"

0 commit comments

Comments
 (0)