From fde653314c8aa9375292b91294ab24ea1c638c63 Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Fri, 6 Dec 2024 22:34:51 +0900 Subject: [PATCH] ci(pytest): Uploading test results to Codecov --- .github/workflows/pytest.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index ccae74a..81a09a8 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -25,9 +25,13 @@ jobs: - name: Install dependencies run: poetry install -E test - name: Run tests with coverage report - run: poetry run pytest --cov-report=xml - + run: poetry run pytest --junitxml=junit.xml - name: Upload results to Codecov uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }}