Add min 95% code coverage

This commit is contained in:
Rohan Mehta 2025-03-18 16:46:32 -04:00
parent 3b2afe118d
commit 74b197bc2c
2 changed files with 11 additions and 2 deletions

View file

@ -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

View file

@ -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
@ -43,3 +50,5 @@ serve-docs:
deploy-docs:
uv run mkdocs gh-deploy --force --verbose