@@ -12,77 +12,88 @@ jobs:
12
12
R-CMD-check :
13
13
runs-on : ${{ matrix.config.os }}
14
14
15
- name : ${{ matrix.config.os }} (${{ matrix.config.r }}) ${{ matrix.config.locale }}
15
+ name : ${{ matrix.config.os }} (${{ matrix.config.r }})
16
16
17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
20
config :
21
+ - {os: macOS-latest, r: 'release'}
22
+ - {os: windows-latest, r: 'release'}
21
23
- {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', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
25
- - {os: ubuntu-16.04, r: '3.3', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
26
- - {os: ubuntu-16.04, r: '3.4', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
27
- - {os: ubuntu-16.04, r: '3.5', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
28
- - {os: ubuntu-16.04, r: '3.6', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
29
- - {os: ubuntu-16.04, r: '3.6', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest", locale: 'en_US'}
24
+ - {os: ubuntu-16.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest", http-user-agent: "R/4.0.0 (ubuntu-16.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
25
+ - {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
26
+ - {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
27
+ - {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
28
+ - {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
29
+ - {os: ubuntu-16.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
30
+ - {os: ubuntu-16.04, r: '3.6', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest", locale: 'en_US'}
30
31
31
32
env :
32
33
R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
33
- CRAN : ${{ matrix.config.cran }}
34
+ RSPM : ${{ matrix.config.rspm }}
35
+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
34
36
35
37
steps :
36
38
- uses : actions/checkout@v2
37
39
38
- - name : Set locale
39
- if : matrix.config.locale == 'en_US'
40
- run : |
41
- sudo locale-gen en_US
42
- echo "::set-env name=LC_ALL::en_US"
43
-
44
40
- uses : r-lib/actions/setup-r@master
45
41
with :
46
42
r-version : ${{ matrix.config.r }}
43
+ http-user-agent : ${{ matrix.config.http-user-agent }}
47
44
48
45
- uses : r-lib/actions/setup-pandoc@master
49
46
50
47
- name : Query dependencies
51
48
run : |
52
49
install.packages('remotes')
53
- saveRDS(remotes::dev_package_deps(dependencies = TRUE), "depends.Rds", version = 2)
50
+ saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
51
+ writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
54
52
shell : Rscript {0}
55
53
56
54
- name : Cache R packages
57
55
if : runner.os != 'Windows'
58
56
uses : actions/cache@v1
59
57
with :
60
58
path : ${{ env.R_LIBS_USER }}
61
- key : ${{ runner.os }}-r- ${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
62
- restore-keys : ${{ runner.os }}-r- ${{ matrix.config.r }}-
59
+ key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- ${{ hashFiles('.github/ depends.Rds') }}
60
+ restore-keys : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1 -
63
61
64
62
- name : Install system dependencies
65
63
if : runner.os == 'Linux'
66
- env :
67
- RHUB_PLATFORM : linux-x86_64-ubuntu-gcc
68
64
run : |
69
- Rscript -e "remotes::install_github('r-hub/sysreqs')"
70
- sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
71
- sudo -s eval "$sysreqs"
65
+ while read -r cmd
66
+ do
67
+ eval sudo $cmd
68
+ done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "16.04"), sep = "\n")')
72
69
73
70
- name : Install dependencies
74
71
run : |
75
72
remotes::install_deps(dependencies = TRUE)
76
73
remotes::install_cran("rcmdcheck")
77
74
shell : Rscript {0}
78
75
76
+ - name : Session info
77
+ run : |
78
+ options(width = 100)
79
+ pkgs <- installed.packages()[, "Package"]
80
+ sessioninfo::session_info(pkgs, include_base = TRUE)
81
+ shell : Rscript {0}
82
+
79
83
- name : Check
80
- run : rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
84
+ env :
85
+ _R_CHECK_CRAN_INCOMING_ : false
86
+ run : rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
81
87
shell : Rscript {0}
82
88
89
+ - name : Show testthat output
90
+ if : always()
91
+ run : find check -name 'testthat.Rout*' -exec cat '{}' \; || true
92
+ shell : bash
93
+
83
94
- name : Upload check results
84
95
if : failure()
85
- uses : actions/upload-artifact@master
96
+ uses : actions/upload-artifact@main
86
97
with :
87
98
name : ${{ runner.os }}-r${{ matrix.config.r }}-results
88
99
path : check
0 commit comments