From 747f1adeb6686ca79c49452949eb163a80c7bc52 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Sat, 11 Jan 2025 14:56:12 -0700 Subject: [PATCH] upload tests results to codecov --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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