forked from phoenix-oss/llama-stack-mirror
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:
parent
ed6caead72
commit
2baf200b63
1 changed files with 2 additions and 1 deletions
3
.github/workflows/unit-tests.yml
vendored
3
.github/workflows/unit-tests.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue