From 4edc8e325b907f55668028092f213ee6d4000682 Mon Sep 17 00:00:00 2001 From: mic1on Date: Sat, 11 Jul 2026 21:31:58 +0800 Subject: [PATCH] ci: enforce coverage gates --- .github/workflows/test.yml | 4 +++- pyproject.toml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84f1110..cbd7d31 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,8 @@ jobs: - name: Run lint run: make lint - name: Run tests - run: uv run pytest tests/ + run: make test + - name: Run coverage + run: make coverage - name: Prune uv cache run: uv cache prune --ci diff --git a/pyproject.toml b/pyproject.toml index 2870d69..32ad1d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,3 +43,6 @@ line_length = 100 [tool.pytest.ini_options] asyncio_mode = "auto" + +[tool.coverage.report] +fail_under = 95