Skip to content

Commit b7783ab

Browse files
committed
Enhance test workflow to include HTML coverage report and publish test results summary
1 parent bc2a735 commit b7783ab

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,31 @@ jobs:
3232
3333
- name: Run tests with coverage
3434
run: |
35-
uv run pytest tests/ -v --cov=h5ad --cov-report=term-missing --cov-report=xml
35+
uv run pytest tests/ -v --cov=h5ad --cov-report=term-missing --cov-report=xml --cov-report=html --junitxml=pytest-results.xml
3636
37-
- name: Upload coverage report as artifact
37+
- name: Publish test results summary
38+
uses: EnricoMi/publish-unit-test-result-action@v2
39+
if: always()
40+
with:
41+
files: pytest-results.xml
42+
check_name: Test Results
43+
44+
- name: Upload coverage XML
3845
uses: actions/upload-artifact@v4
3946
if: always()
4047
with:
41-
name: coverage-report
48+
name: coverage-xml
4249
path: coverage.xml
4350
retention-days: 30
4451

52+
- name: Upload coverage HTML
53+
uses: actions/upload-artifact@v4
54+
if: always()
55+
with:
56+
name: coverage-html
57+
path: htmlcov/
58+
retention-days: 30
59+
4560
- name: Upload coverage to Codecov
4661
uses: codecov/codecov-action@v4
4762
with:

0 commit comments

Comments
 (0)