Skip to content

Commit

Permalink
nix for test-coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Rodrigues committed Jan 28, 2024
1 parent 047e238 commit 67e392e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,18 @@ jobs:
steps:
- uses: actions/checkout@v3

- 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
needs: coverage
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Test coverage
run: |
nix-shell -p R rPackages.covr --run '
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}
'
- name: Show testthat output
if: always()
Expand Down

0 comments on commit 67e392e

Please sign in to comment.