From c3ace7ccd940ae920eb1eb4ab2846b0a7bdb4132 Mon Sep 17 00:00:00 2001 From: "Diego H." Date: Mon, 2 Dec 2024 10:43:18 +0100 Subject: [PATCH] Upgrade coverage --- .github/workflows/test-coverage.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 7b1bca1..7d3f5be 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -41,7 +41,8 @@ jobs: - name: Create Junit Report if: always() run: | - testthat::test_local(reporter = testthat::JunitReporter$new("./junit.xml")) + test_out <- path.expand(file.path(getwd(), "junit.xml")) + testthat::test_local(reporter = testthat::JunitReporter$new(test_out)) shell: Rscript {0} - name: Upload test results to Codecov @@ -54,12 +55,12 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Upload coverage report - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: # Fail if error if not on PR, or if on PR and token is given fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }} - file: ./cobertura.xml - plugin: noop + files: ./cobertura.xml + plugins: noop disable_search: true token: ${{ secrets.CODECOV_TOKEN }}