diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 16ee201e..7ac7255d 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -21,8 +21,21 @@ jobs: - name: Editable mode install run: | python -m pip install uv - uv pip install --system pytest + uv pip install --system pytest pytest-cov pytest-html uv pip install --system -e . - name: Test with pytest run: | - pytest + pytest --cov=./ --coverage-report=html --html=pytest_report.html --self-contained-html + + - name: Upload test report + uses: actions/upload-artifact@v4 + with: + name: pytest_report + path: pytest_report.html + + - name: Upload coverage report + uses: actions/upload-artifact@v4 + with: + name: coverage_report + path: htmlcov + diff --git a/.gitignore b/.gitignore index b7fa70b2..6c7f2c2f 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,8 @@ bin/ # Pytest tests/.tests pytest_session.txt +pytest_report.html +htmlcov .cache/ .pytest_cache .coverage