Add coverage and badges

This commit is contained in:
Yiorgis Gozadinos 2025-12-29 14:27:21 +02:00
parent 1609582c1f
commit 68ac50acff
No known key found for this signature in database
2 changed files with 11 additions and 2 deletions

View file

@ -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

View file

@ -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