Skip to content

Commit 84363fd

Browse files
committedMar 18, 2025·
Add min 95% code coverage
1 parent 3b2afe1 commit 84363fd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
 

‎.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
enable-cache: true
5151
- name: Install dependencies
5252
run: make sync
53-
- name: Run tests
54-
run: make tests
53+
- name: Run tests with coverage
54+
run: make coverage
5555

5656
build-docs:
5757
runs-on: ubuntu-latest

‎Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ mypy:
1818
tests:
1919
uv run pytest
2020

21+
.PHONY: coverage
22+
coverage:
23+
uv run coverage run -m pytest
24+
coverage xml -o coverage.xml
25+
coverage report -m --fail-under=95
26+
2127
.PHONY: snapshots-fix
2228
snapshots-fix:
2329
uv run pytest --inline-snapshot=fix
@@ -42,4 +48,6 @@ serve-docs:
4248
.PHONY: deploy-docs
4349
deploy-docs:
4450
uv run mkdocs gh-deploy --force --verbose
51+
52+
4553

0 commit comments

Comments
 (0)
Please sign in to comment.