From 7c36850b72337499b7300b20db44c165db165040 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Sat, 4 Jul 2026 18:43:26 -0400 Subject: [PATCH] ci: measure coverage by package name + editable install (fix 0% in CI) --- .gitea/workflows/build.yaml | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 8da9f21..554d5ca 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -21,8 +21,8 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.12" - - name: Install (with dev extras) - run: pip install --quiet ".[dev]" + - name: Install (editable, with dev extras) + run: pip install --quiet -e ".[dev]" - name: Test + coverage gate (>=90%) run: pytest diff --git a/pyproject.toml b/pyproject.toml index ff4535a..2ff42e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -114,7 +114,7 @@ default.unicode = true default.locale = "en-us" [tool.pytest.ini_options] -addopts = "-q --cov=src/intervals_mcp_server --cov-report=term-missing --cov-fail-under=90" +addopts = "-q --cov=intervals_mcp_server --cov-report=term-missing --cov-fail-under=90" testpaths = ["tests"] python_files = "test_*.py" asyncio_default_fixture_loop_scope = "function"