Add min 95% code coverage
This commit is contained in:
parent
3b2afe118d
commit
74b197bc2c
2 changed files with 11 additions and 2 deletions
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
|
@ -50,8 +50,8 @@ jobs:
|
|||
enable-cache: true
|
||||
- name: Install dependencies
|
||||
run: make sync
|
||||
- name: Run tests
|
||||
run: make tests
|
||||
- name: Run tests with coverage
|
||||
run: make coverage
|
||||
|
||||
build-docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
9
Makefile
9
Makefile
|
|
@ -18,6 +18,13 @@ mypy:
|
|||
tests:
|
||||
uv run pytest
|
||||
|
||||
.PHONY: coverage
|
||||
coverage:
|
||||
|
||||
uv run coverage run -m pytest
|
||||
uv run coverage xml -o coverage.xml
|
||||
uv run coverage report -m --fail-under=95
|
||||
|
||||
.PHONY: snapshots-fix
|
||||
snapshots-fix:
|
||||
uv run pytest --inline-snapshot=fix
|
||||
|
|
@ -42,4 +49,6 @@ serve-docs:
|
|||
.PHONY: deploy-docs
|
||||
deploy-docs:
|
||||
uv run mkdocs gh-deploy --force --verbose
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue