From 6d6e6d7eb9487013bedfeb02daf3966602ee7cfa Mon Sep 17 00:00:00 2001 From: Robert Lippmann Date: Fri, 6 Mar 2026 02:02:02 -0500 Subject: [PATCH] ci: publish pytest coverage reports as artifacts --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51b53d2..70acfe9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,5 +40,18 @@ jobs: - name: Install Hypothesis for tests run: uv pip install --python .venv/bin/python hypothesis + - name: Install coverage tooling + run: uv pip install --python .venv/bin/python pytest-cov + - name: Pytest - run: uv run pytest + run: uv run pytest --cov=context_compiler --cov-report=term --cov-report=xml:coverage.xml --cov-report=html:htmlcov + + - name: Upload coverage report + if: always() + uses: actions/upload-artifact@v4 + with: + name: coverage-python-${{ matrix.python-version }} + path: | + coverage.xml + htmlcov/ + if-no-files-found: ignore