-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecov.yml
26 lines (25 loc) · 871 Bytes
/
codecov.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
name: codecov
jobs:
macOS:
runs-on: macOS-latest
strategy:
matrix:
r: ['3.6', 'devel']
steps:
- uses: actions/checkout@v1
- uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.r }}
- uses: r-lib/actions/setup-pandoc@master
- uses: r-lib/actions/setup-tinytex@master
- name: Install dependencies
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
run: Rscript -e "install.packages(c('remotes', 'rcmdcheck'))" -e "remotes::install_deps(dependencies = TRUE)"
- name: Check
run: Rscript -e "rcmdcheck::rcmdcheck(error_on = 'error')"
- name: Test coverage
if: matrix.r == '3.6'
run: |
Rscript -e 'remotes::install_github("r-lib/covr@gh-actions")'
Rscript -e 'covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")'