@@ -18,18 +18,17 @@ jobs:
18
18
fail-fast : false
19
19
matrix :
20
20
config :
21
- - {os: windows -latest, r: '3.6 '}
22
- - {os: macOS-latest, r: '3.6 '}
23
- - {os: macOS -latest, r: 'devel '}
24
- - {os: ubuntu-16.04, r: '3.2 ', rspm: "https://demo.rstudiopm .com/all /__linux__/xenial/latest"}
25
- - {os: ubuntu-16.04, r: '3.3 ', rspm: "https://demo.rstudiopm .com/all /__linux__/xenial/latest"}
26
- - {os: ubuntu-16.04, r: '3.4 ', rspm: "https://demo.rstudiopm .com/all /__linux__/xenial/latest"}
27
- - {os: ubuntu-16.04, r: '3.5 ', rspm: "https://demo.rstudiopm .com/all /__linux__/xenial/latest"}
28
- - {os: ubuntu-16.04, r: '3.6 ', rspm: "https://demo.rstudiopm .com/all /__linux__/xenial/latest"}
21
+ - {os: macOS -latest, r: 'devel '}
22
+ - {os: macOS-latest, r: '4.0 '}
23
+ - {os: windows -latest, r: '4.0 '}
24
+ - {os: ubuntu-16.04, r: '4.0 ', rspm: "https://packagemanager.rstudio .com/cran /__linux__/xenial/latest"}
25
+ - {os: ubuntu-16.04, r: '3.6 ', rspm: "https://packagemanager.rstudio .com/cran /__linux__/xenial/latest"}
26
+ - {os: ubuntu-16.04, r: '3.5 ', rspm: "https://packagemanager.rstudio .com/cran /__linux__/xenial/latest"}
27
+ - {os: ubuntu-16.04, r: '3.4 ', rspm: "https://packagemanager.rstudio .com/cran /__linux__/xenial/latest"}
28
+ - {os: ubuntu-16.04, r: '3.3 ', rspm: "https://packagemanager.rstudio .com/cran /__linux__/xenial/latest"}
29
29
30
30
env :
31
31
R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
32
- _R_CHECK_FORCE_SUGGESTS_ : false
33
32
RSPM : ${{ matrix.config.rspm }}
34
33
35
34
steps :
@@ -44,16 +43,16 @@ jobs:
44
43
- name : Query dependencies
45
44
run : |
46
45
install.packages('remotes')
47
- saveRDS(remotes::dev_package_deps(dependencies = TRUE), "depends.Rds", version = 2)
46
+ saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/ depends.Rds", version = 2)
48
47
shell : Rscript {0}
49
48
50
49
- name : Cache R packages
51
50
if : runner.os != 'Windows'
52
51
uses : actions/cache@v1
53
52
with :
54
53
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 }}-
54
+ key : ${{ runner.os }}-r-${{ matrix.config.r }}-2- ${{ hashFiles('.github/ depends.Rds') }}
55
+ restore-keys : ${{ runner.os }}-r-${{ matrix.config.r }}-1-
57
56
58
57
- name : Install system dependencies
59
58
if : runner.os == 'Linux'
@@ -70,18 +69,27 @@ jobs:
70
69
remotes::install_cran("rcmdcheck")
71
70
shell : Rscript {0}
72
71
72
+ - name : Session info
73
+ run : |
74
+ options(width = 100)
75
+ pkgs <- installed.packages()[, "Package"]
76
+ sessioninfo::session_info(pkgs, include_base = TRUE)
77
+ shell : Rscript {0}
78
+
73
79
- name : Check
74
- run : rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
80
+ env :
81
+ _R_CHECK_CRAN_INCOMING_ : false
82
+ run : rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
75
83
shell : Rscript {0}
76
84
85
+ - name : Show testthat output
86
+ if : always()
87
+ run : find check -name 'testthat.Rout*' -exec cat '{}' \; || true
88
+ shell : bash
89
+
77
90
- name : Upload check results
78
91
if : failure()
79
92
uses : actions/upload-artifact@master
80
93
with :
81
94
name : ${{ runner.os }}-r${{ matrix.config.r }}-results
82
95
path : check
83
-
84
- - name : Test coverage
85
- if : matrix.config.os == 'macOS-latest' && matrix.config.r == '3.6'
86
- run : covr::codecov()
87
- shell : Rscript {0}
0 commit comments