Exclude non-essential files from coverage report

This commit is contained in:
ChristianZaccaria 2025-07-07 13:52:10 +01:00
parent 24a4a1e167
commit 6daf23a22b
3 changed files with 11 additions and 1 deletions

View file

@ -16,6 +16,9 @@ if [ $FOUND_PYTHON -ne 0 ]; then
uv python install "$PYTHON_VERSION"
fi
# Run unit tests with coverage
uv run --python "$PYTHON_VERSION" --with-editable . --group unit \
coverage run --source=llama_stack -m pytest -s -v tests/unit/ "$@" && \
coverage run --source=llama_stack -m pytest -s -v tests/unit/ "$@"
# Generate HTML coverage report
uv run --python "$PYTHON_VERSION" coverage html -d htmlcov-$PYTHON_VERSION