20
20
config :
21
21
- {os: macOS-latest, r: 'devel'}
22
22
- {os: macOS-latest, r: 'release'}
23
- - {os: windows-latest, r: '4.0'}
23
+ - {os: windows-latest, r: 'release'}
24
+ - {os: windows-latest, r: 'oldrel'}
24
25
- {os: ubuntu-16.04, r: '4.0', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
25
26
- {os: ubuntu-16.04, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
26
27
- {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
31
32
env :
32
33
R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
33
34
RSPM : ${{ matrix.config.rspm }}
35
+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
34
36
35
37
steps :
36
38
- uses : actions/checkout@v2
@@ -45,15 +47,16 @@ jobs:
45
47
run : |
46
48
install.packages('remotes')
47
49
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
50
+ writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
48
51
shell : Rscript {0}
49
52
50
53
- name : Cache R packages
51
54
if : runner.os != 'Windows'
52
55
uses : actions/cache@v1
53
56
with :
54
57
path : ${{ env.R_LIBS_USER }}
55
- key : ${{ runner.os }}-r- ${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
56
- restore-keys : ${{ runner.os }}-r- ${{ matrix.config.r }}-
58
+ key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- ${{ hashFiles('.github/ depends.Rds') }}
59
+ restore-keys : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1 -
57
60
58
61
- name : Install system dependencies
59
62
if : runner.os == 'Linux'
65
68
sudo -s eval "$sysreqs"
66
69
67
70
- name : Install dependencies
68
- run :
69
- Rscript -e "library(remotes)" -e "deps <- readRDS('.github/depends.Rds')" -e "deps[['installed']] <- vapply(deps[['package']], remotes:::local_sha, character(1))" -e "update(deps)" -e "remotes::install_cran('rcmdcheck')"
71
+ run : |
72
+ remotes::install_deps(dependencies = TRUE)
73
+ remotes::install_cran("rcmdcheck")
74
+ shell : Rscript {0}
70
75
71
76
- name : Session info
72
77
run : |
78
83
- name : Check
79
84
env :
80
85
_R_CHECK_CRAN_INCOMING_ : false
81
- run : rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "note", check_dir = "check")
86
+ RCMDCHECK_ERROR_ON : note
87
+ run : rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = Sys.getenv("RCMDCHECK_ERROR_ON"), check_dir = "check")
82
88
shell : Rscript {0}
83
89
84
90
- name : Show testthat output
92
98
with :
93
99
name : ${{ runner.os }}-r${{ matrix.config.r }}-results
94
100
path : check
95
-
96
- - name : Test coverage
97
- if : matrix.config.os == 'macOS-latest' && matrix.config.r == '3.6'
98
- run :
99
- Rscript -e 'covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")'
0 commit comments