diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e1d3ed..a6521ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,13 +49,18 @@ jobs: - name: Install dependencies run: uv sync --group=test - name: Run pytest - run: uv run pytest --cov=teufa --cov-report=xml tests/ + run: uv run pytest --cov=teufa --cov-report=xml --junitxml=junit.xml --override-ini=junit_family=legacy tests/ env: DATABASE_URL: postgresql+psycopg://postgres:postgres@localhost:5432/postgres - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.4.1 with: token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} build: name: Build and push image runs-on: ubuntu-latest