-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.36 KB
/
document-check-and-covr.yaml
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
47
48
49
on:
push:
branches:
- main
- master
name: R-CMD-check
jobs:
document-and-dispatch:
name: document
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: 'release'
- name: Delete-Namespace
run: Rscript -e 'file.remove("NAMESPACE")'
- uses: r-lib/actions/setup-pandoc@v2
- name: system dependencies
run: sudo apt-get install libcurl4-openssl-dev libnode-dev
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, any::roxygen2, any::devtools
needs: check
- name: Document
run: Rscript -e 'roxygen2::roxygenise(); devtools::build_readme()'
- name: commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add -f man/\* NAMESPACE
git commit -m 'Documentation' || echo "No changes to commit"
git push origin || echo "No changes to commit"
- uses: r-lib/actions/check-r-package@v2
- name: Test coverage
run: |
install.packages(c("covr"))
covr::codecov()
shell: Rscript {0}