From 3760c50b91e4f3b141f767310bdd4150afe0d8e6 Mon Sep 17 00:00:00 2001 From: Domenico DiNicola Date: Mon, 30 Dec 2024 15:19:51 -0600 Subject: [PATCH] coverage? --- .github/workflows/test.yml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0845a1..10f22eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -90,23 +90,10 @@ jobs: - name: Test if: needs.changes.outputs.run_tests run: | - uv run pytest tests --create-db --junit-xml junit-${{ matrix.python-version }}-${{matrix.django-version}}.xml + uv run pytest tests --create-db --junit-xml junit-${{ matrix.python-version }}-${{matrix.django-version}}.xml -o junit_family=legacy - - name: Upload pytest test results - uses: actions/upload-artifact@v4 + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 with: - name: pytest-results-${{ matrix.python-version }}-${{matrix.django-version}} - path: junit-${{ matrix.python-version }}-${{matrix.django-version}}.xml - if: ${{ always() }} - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 - if: ${{ always() }} - continue-on-error: true - with: - env_vars: OS,PYTHON - fail_ci_if_error: true - files: coverage.xml token: ${{ secrets.CODECOV_TOKEN }} - verbose: false - name: codecov-${{env.GITHUB_REF_NAME}}