diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 6027920..c346e31 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -25,7 +25,7 @@ jobs: enable-cache: true cache-dependency-glob: "backend/uv.lock" # Install a specific version of uv. - version: "0.7.13" + version: "0.8.11" - name: Set up Python run: uv python install @@ -43,7 +43,7 @@ jobs: run: uv run ty check - name: Run tests - run: uv run pytest -v -s + run: uv run pytest -v -s --cov frontend-build: runs-on: ubuntu-latest diff --git a/backend/Makefile b/backend/Makefile index a72e2f2..4995fea 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -35,7 +35,7 @@ typecheck-pyrefly: uv.lock $(PYTHON) run pyrefly check $(TYPECHECK_OPTIONS) --python-interpreter .venv/bin/python3 test: uv.lock - uv run pytest -v -s $(TEST_OPTIONS) + uv run pytest -v -s $(TEST_OPTIONS) --cov clean: find . -type d -name '__pycache__' -exec rm -r {} + diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 8179ded..e530ba7 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -27,9 +27,17 @@ where = ["."] exclude = ["data*"] [build-system] -requires = ["setuptools>=61"] +requires = ["setuptools>=80"] build-backend = "setuptools.build_meta" +[tool.coverage.run] +branch = true +source = ["tenantfirstaid"] + +[tool.coverage.report] +fail_under = 85.0 # percentage of overall coverage +show_missing = true + [dependency-groups] dev = [ "ipdb>=0.13.13",