From bd7bb9a732c1dab180b428bdcfbf52555b762026 Mon Sep 17 00:00:00 2001 From: hudde Date: Mon, 4 Sep 2023 19:11:39 +0200 Subject: [PATCH] Revert commit 2698512 --- .github/workflows/codecov.yml | 52 +++++++++-------------------------- 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 3ace1d4..c19e7b5 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,39 +1,13 @@ -name: "Codecov" -inputs: - results: - required: true - -runs: - using: "composite" - steps: - - uses: r-lib/actions/check-r-package@v2 - with: - # Fails on R 3.6 on Windows, remove when this job is removed? - args: 'c("--no-manual", "--as-cran", "--no-multiarch")' - error-on: ${{ env.RCMDCHECK_ERROR_ON || '"note"' }} - - - name: Run coverage check - if: ${{ matrix.config.covr }} - run: | - if (dir.exists("tests/testthat")) { - covr::codecov() - } else { - message("No tests found, coverage not tested.") - } - shell: Rscript {0} - - - name: Show test output - if: always() - run: | - ## -- Show test output -- - echo "::group::Test output" - find check -name '*.Rout*' -exec head -n 1000000 '{}' \; || true - echo "::endgroup::" - shell: bash - - - name: Upload check results - if: failure() - uses: actions/upload-artifact@main - with: - name: ${{ inputs.results }}-results - path: check +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: codecov + +jobs: + name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}