File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 24
24
python -m pip install --upgrade pip
25
25
python -m pip install hatch
26
26
- name : Pytest
27
- run : hatch run +py=${{ matrix.python-version }} test:test
27
+ run : hatch run +py=${{ matrix.python-version }} test:test-cov
28
+ - name : Coverage report
29
+ run : hatch run +py=${{ matrix.python-version }} test:cov-report
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ dependencies = [
45
45
46
46
[tool .hatch .envs .default .scripts ]
47
47
test = " pytest {args}"
48
- test-cov = " test --cov-report=term-missing --cov-config=pyproject.toml --cov=asdf_pydantic --cov=tests {args}"
48
+ test-cov = " test --cov-report= --cov-config=pyproject.toml --cov=asdf_pydantic --cov=tests {args}"
49
+ cov-report = " coverage report {args}"
49
50
50
51
[tool .hatch .envs .test ]
51
52
template = " default"
@@ -86,6 +87,8 @@ omit = ["asdf_pydantic/__version__.py"]
86
87
87
88
[tool .coverage .report ]
88
89
exclude_lines = [" no cov" , " if __name__ == .__main__.:" , " if TYPE_CHECKING:" ]
90
+ precision = 1
91
+ fail_under = 95
89
92
90
93
[tool .ruff .pydocstyle ]
91
94
convention = " google"
You can’t perform that action at this time.
0 commit comments