Skip to content

Make the release job idempotent on re-run #68

Make the release job idempotent on re-run

Make the release job idempotent on re-run #68

Workflow file for this run

on:
push:
branches: [main]
pull_request:
branches: [main]
name: test-coverage
permissions:
contents: read
jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, any::xml2
needs: coverage
- name: Test coverage
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}
- name: Show test output
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package/tests/testthat.Rout.fail
error-on-missing-files: false