From 2baf200b63e2677ec991adc5e77c19d46477d838 Mon Sep 17 00:00:00 2001 From: Nathan Weinberg <31703736+nathan-weinberg@users.noreply.github.com> Date: Wed, 12 Mar 2025 22:05:49 -0400 Subject: [PATCH] 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 --- .github/workflows/unit-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 59d18b3be..517b5c39a 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -33,7 +33,7 @@ jobs: - name: Run unit tests 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 if: always() @@ -43,4 +43,5 @@ jobs: path: | .pytest_cache/ pytest-report-${{ matrix.python }}.xml + htmlcov-${{ matrix.python }}/ retention-days: 7