diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a3d1e2b7..b83dc2cd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,5 +39,11 @@ jobs: python-version-file: "pyproject.toml" - name: Install dependencies run: uv sync --all-extras - - name: Run tests - run: uv run pytest -m "not integration" + - name: Run tests with coverage + run: uv run pytest -m "not integration" --cov=haiku --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.xml + fail_ci_if_error: false diff --git a/README.md b/README.md index 3b3ff160..b77f9818 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Haiku RAG +[![Tests](https://github.com/ggozad/haiku.rag/actions/workflows/test.yml/badge.svg)](https://github.com/ggozad/haiku.rag/actions/workflows/test.yml) +[![codecov](https://codecov.io/gh/ggozad/haiku.rag/graph/badge.svg)](https://codecov.io/gh/ggozad/haiku.rag) + Agentic RAG built on [LanceDB](https://lancedb.com/), [Pydantic AI](https://ai.pydantic.dev/), and [Docling](https://docling-project.github.io/docling/). ## Features