Spaces:
Sleeping
Sleeping
Fanwang Meng
commited on
Commit
·
6aff223
1
Parent(s):
813466d
Fix missing coverage report
Browse files- .github/workflows/ci_codecov.yml +2 -3
- pyproject.toml +8 -1
.github/workflows/ci_codecov.yml
CHANGED
@@ -59,9 +59,8 @@ jobs:
|
|
59 |
|
60 |
- name: Run tests
|
61 |
shell: bash
|
62 |
-
run:
|
63 |
-
python -m pytest -c pyproject.toml --cov-config=.coveragerc --cov-report=xml --color=yes
|
64 |
-
selector
|
65 |
|
66 |
- name: CodeCov
|
67 |
uses: codecov/codecov-action@v3
|
|
|
59 |
|
60 |
- name: Run tests
|
61 |
shell: bash
|
62 |
+
run: |
|
63 |
+
python -m pytest -c pyproject.toml --cov-config=.coveragerc --cov-report=xml --color=yes selector
|
|
|
64 |
|
65 |
- name: CodeCov
|
66 |
uses: codecov/codecov-action@v3
|
pyproject.toml
CHANGED
@@ -338,6 +338,12 @@ exclude = [
|
|
338 |
addopts = [
|
339 |
# Allow test files to have the same name in different directories.
|
340 |
"--import-mode=importlib",
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
]
|
342 |
# directory containing the tests
|
343 |
testpaths = [
|
@@ -346,7 +352,8 @@ testpaths = [
|
|
346 |
]
|
347 |
norecursedirs = [
|
348 |
".vscode",
|
349 |
-
"__pycache__"
|
|
|
350 |
]
|
351 |
# Warnings that should be ignored
|
352 |
filterwarnings = [
|
|
|
338 |
addopts = [
|
339 |
# Allow test files to have the same name in different directories.
|
340 |
"--import-mode=importlib",
|
341 |
+
"--cache-clear",
|
342 |
+
"--showlocals",
|
343 |
+
"-v",
|
344 |
+
"-r a",
|
345 |
+
"--cov-report=term-missing",
|
346 |
+
"--cov=selector",
|
347 |
]
|
348 |
# directory containing the tests
|
349 |
testpaths = [
|
|
|
352 |
]
|
353 |
norecursedirs = [
|
354 |
".vscode",
|
355 |
+
"__pycache__",
|
356 |
+
"build",
|
357 |
]
|
358 |
# Warnings that should be ignored
|
359 |
filterwarnings = [
|