Skip to content

Commit d467ac7

Browse files
authored
🔧 Update coverage configs (#74)
1 parent 73f2129 commit d467ac7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- run: ls -la coverage
100100
- run: coverage combine coverage
101101
- run: coverage report
102-
- run: coverage html --show-contexts --title "Coverage for ${{ github.sha }}"
102+
- run: coverage html --title "Coverage for ${{ github.sha }}"
103103
- name: Store coverage HTML
104104
uses: actions/upload-artifact@v4
105105
with:

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,24 @@ source = [
8686
"tests",
8787
]
8888
context = '${CONTEXT}'
89+
dynamic_context = "test_function"
8990
omit = [
9091
"tests/assets/*",
9192
]
9293

9394
[tool.coverage.report]
95+
show_missing = true
96+
sort = "-Cover"
9497
exclude_lines = [
9598
"pragma: no cover",
9699
"@overload",
97100
'if __name__ == "__main__":',
98101
"if TYPE_CHECKING:",
99102
]
100103

104+
[tool.coverage.html]
105+
show_contexts = true
106+
101107
[tool.mypy]
102108
strict = true
103109
exclude = [

scripts/test-cov-html.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ set -x
55

66
bash scripts/test.sh ${@}
77
coverage combine
8-
coverage report --show-missing
8+
coverage report
99
coverage html

0 commit comments

Comments
 (0)