Skip to content

Commit 6cb328d

Browse files
committed
Use --cov-branch
1 parent fa57208 commit 6cb328d

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
DEST_FASTAPI: examples/fastapi
7878
DEST_BLACKSHEEP: examples/blacksheep
7979
PYTHONDEVMODE: 1
80-
PYTEST_ARGS: "-n auto --cov=tortoise --cov-append --tb=native -q"
80+
PYTEST_ARGS: "-n auto --cov=tortoise --cov-append --cov-branch --tb=native -q"
8181
- name: Upload Coverage
8282
run: |
8383
pip3 install --upgrade coveralls

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
checkfiles = tortoise/ examples/ tests/ conftest.py
22
py_warn = PYTHONDEVMODE=1
3-
pytest_opts = -n auto --cov=tortoise --cov-append --tb=native -q
3+
pytest_opts = -n auto --cov=tortoise --cov-append --cov-branch --tb=native -q
44

55
TORTOISE_MYSQL_PASS ?= 123456
66
TORTOISE_POSTGRES_PASS ?= 123456

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,6 @@ filterwarnings = [
190190
'ignore:Do not add pk field to `update_fields`!:RuntimeWarning',
191191
]
192192

193-
[tool.coverage.run]
194-
branch = true
195-
source = ["tortoise"]
196-
197193
[tool.coverage.report]
198194
show_missing = true
199195

0 commit comments

Comments
 (0)