diff --git a/.github/workflows/chore.yaml b/.github/workflows/chore.yaml index ba51209..6b907ae 100644 --- a/.github/workflows/chore.yaml +++ b/.github/workflows/chore.yaml @@ -26,16 +26,22 @@ jobs: uv venv uv pip install -e . - - name: Test with pytest + - name: Run tests with coverage run: | - uv run pytest --cov --junitxml=junit.xml + uv run pytest --cov --cov-branch --cov-report=xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + + - name: Test with pytest + run: | + uv run pytest --cov --junitxml=junit.xml + - name: Upload test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + report_type: test_results + files: junit.xml