File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 33
33
34
34
env :
35
35
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
36
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
36
37
R_KEEP_PKG_SOURCE : yes
37
38
_R_CHECK_FORCE_SUGGESTS_ : false
38
39
_R_CHECK_RD_XREFS_ : false
72
73
R CMD build litedown
73
74
R CMD check --as-cran --no-manual litedown_*.tar.gz
74
75
76
+ - name : Test coverage
77
+ if : success() && runner.os == 'Linux' && matrix.config.r == 'release'
78
+ run : |
79
+ pak::pkg_install('covr')
80
+ covr::codecov()
81
+ shell : Rscript {0}
82
+
75
83
- uses : actions/checkout@HEAD
76
84
if : runner.os == 'macOS'
77
85
with :
Original file line number Diff line number Diff line change 15
15
release] ( https://www.r-pkg.org/badges/version/litedown )] ( https://cran.r-project.org/package=litedown )
16
16
[ ![ litedown on
17
17
r-universe] ( https://yihui.r-universe.dev/badges/litedown )] ( https://yihui.r-universe.dev/litedown )
18
+ [ ![ Codecov test
19
+ coverage] ( https://codecov.io/gh/yihui/litedown/branch/main/graph/badge.svg )] ( https://app.codecov.io/gh/yihui/litedown?branch=main )
18
20
19
21
<!-- badges: end -->
20
22
You can’t perform that action at this time.
0 commit comments