🔧 Update coverage config files (#1077)
This commit is contained in:
parent
805718d78d
commit
e448c339db
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -100,7 +100,7 @@ jobs:
|
|||||||
- run: ls -la coverage
|
- run: ls -la coverage
|
||||||
- run: coverage combine coverage
|
- run: coverage combine coverage
|
||||||
- run: coverage report
|
- run: coverage report
|
||||||
- run: coverage html --show-contexts --title "Coverage for ${{ github.sha }}"
|
- run: coverage html --title "Coverage for ${{ github.sha }}"
|
||||||
|
|
||||||
- name: Store coverage HTML
|
- name: Store coverage HTML
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
@ -73,14 +73,18 @@ optional-dependencies = {}
|
|||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
parallel = true
|
parallel = true
|
||||||
|
data_file = "coverage/.coverage"
|
||||||
source = [
|
source = [
|
||||||
"docs_src",
|
"docs_src",
|
||||||
"tests",
|
"tests",
|
||||||
"sqlmodel"
|
"sqlmodel"
|
||||||
]
|
]
|
||||||
context = '${CONTEXT}'
|
context = '${CONTEXT}'
|
||||||
|
dynamic_context = "test_function"
|
||||||
|
|
||||||
[tool.coverage.report]
|
[tool.coverage.report]
|
||||||
|
show_missing = true
|
||||||
|
sort = "-Cover"
|
||||||
exclude_lines = [
|
exclude_lines = [
|
||||||
"pragma: no cover",
|
"pragma: no cover",
|
||||||
"@overload",
|
"@overload",
|
||||||
@ -88,6 +92,9 @@ exclude_lines = [
|
|||||||
"if TYPE_CHECKING:",
|
"if TYPE_CHECKING:",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.coverage.html]
|
||||||
|
show_contexts = true
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
strict = true
|
strict = true
|
||||||
|
|
||||||
|
@ -5,5 +5,5 @@ set -x
|
|||||||
|
|
||||||
coverage run -m pytest tests
|
coverage run -m pytest tests
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage report --show-missing
|
coverage report
|
||||||
coverage html
|
coverage html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user