ci: add html report to unit test artifacts (#1576)

# What does this PR do?
additional artifacts make test results more human-readable

## Test Plan
Ran locally

Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
Nathan Weinberg 2025-03-12 22:05:49 -04:00 committed by GitHub
parent ed6caead72
commit 2baf200b63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ jobs:
- name: Run unit tests - name: Run unit tests
run: | run: |
uv run --python ${{ matrix.python }} --with-editable . --with-editable ".[dev]" --with-editable ".[unit]" pytest --cov=llama_stack -s -v tests/unit/ --junitxml=pytest-report-${{ matrix.python }}.xml uv run --python ${{ matrix.python }} --with-editable . --with-editable ".[dev]" --with-editable ".[unit]" pytest --cov=llama_stack -s -v tests/unit/ --junitxml=pytest-report-${{ matrix.python }}.xml --cov-report=html:htmlcov-${{ matrix.python }}
- name: Upload test results - name: Upload test results
if: always() if: always()
@ -43,4 +43,5 @@ jobs:
path: | path: |
.pytest_cache/ .pytest_cache/
pytest-report-${{ matrix.python }}.xml pytest-report-${{ matrix.python }}.xml
htmlcov-${{ matrix.python }}/
retention-days: 7 retention-days: 7