From 3ff7ff18bb55541817b2569d05a23dddadb1ade0 Mon Sep 17 00:00:00 2001 From: d3vyce <44915747+d3vyce@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:00:57 +0100 Subject: [PATCH] tests: upload test results to codecov (#26) --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea8353c..3e2c2db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,12 +89,20 @@ jobs: env: DATABASE_URL: postgresql+asyncpg://postgres:postgres@localhost:5432/test_db run: | - uv run pytest --cov --cov-report=xml --cov-report=term-missing + uv run pytest --cov --cov-report=xml --cov-report=term-missing --junitxml=junit.xml -o junit_family=legacy - name: Upload coverage to Codecov if: matrix.python-version == '3.14' uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + report_type: coverage files: ./coverage.xml fail_ci_if_error: false + + - name: Upload test results to Codecov + if: matrix.python-version == '3.14' + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + report_type: test_results