-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (39 loc) · 1.15 KB
/
covr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Run CI for R using https://eddelbuettel.github.io/r-ci/
name: covr
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
env:
_R_CHECK_FORCE_SUGGESTS_: "false"
_R_CHECK_TESTS_NLINES_: 0
R_NOT_CRAN: true
R_GH: true
GITHUB_PAT: ${{ secrets.COVR_GH_PAT }}
jobs:
ci:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
steps:
- uses: actions/checkout@v4
- name: SessionInfo
run: R -q -e 'sessionInfo()'
- name: Package Dependencies
run: |
Sys.setenv(NOT_CRAN = "true") # Enable installation with pre-built Rust library binary, or enable Rust caching
remotes::install_deps(".", repos = c("https://community.r-multiverse.org", getOption("repos")), dependencies=TRUE, method = "libcurl")
shell: Rscript {0}
- name: Test coverage
run: |
install.packages('covr')
covr::codecov(
quiet = FALSE,
clean = FALSE,
token = "${{secrets.CODECOV_TOKEN}}"
)
shell: Rscript {0}