Add coverage badge to README

This commit is contained in:
ChristianZaccaria 2025-07-07 10:48:56 +01:00
parent f85189022c
commit 1303f166fe
5 changed files with 104 additions and 2 deletions

View file

@ -16,4 +16,9 @@ if [ $FOUND_PYTHON -ne 0 ]; then
uv python install "$PYTHON_VERSION"
fi
uv run --python "$PYTHON_VERSION" --with-editable . --group unit pytest -s -v tests/unit/ $@
# Install coverage if not installed
uv pip install coverage >/dev/null 2>&1
uv run --python "$PYTHON_VERSION" --with-editable . --group unit \
coverage run --source=llama_stack -m pytest -s -v tests/unit/ "$@" && \
uv run --python "$PYTHON_VERSION" coverage html -d htmlcov-$PYTHON_VERSION