11on :
22 push :
3- branches :
4- - master
5- - ' dev*'
6- - ' fix*'
7- - ' issue*'
8- - ' r*'
9- - ' doc*'
10- - ' gh-actions'
11- - ' githubactions'
12- - ' ms*'
3+ branches : [main, master]
134 pull_request :
14- branches :
15- - master
16- paths :
17- - ' **.R'
18- - ' **.r'
19- - ' *DESCRIPTION'
20- - ' **.Rmd'
21- - ' **.rmd'
22- - ' **.rda'
23- - ' **.Rda'
24- - ' **.rds'
25- - ' **.Rds'
5+ branches : [main, master]
266
277name : R-CMD-check
288
299jobs :
3010 R-CMD-check :
3111 runs-on : ${{ matrix.config.os }}
12+
3213 name : ${{ matrix.config.os }} (${{ matrix.config.r }})
3314
3415 strategy :
@@ -37,14 +18,14 @@ jobs:
3718 config :
3819 - {os: windows-latest, r: 'devel'}
3920 - {os: macOS-latest, r: '4.1'}
40- # - {os: macOS-latest, r: '4.0'}
21+ - {os: macOS-latest, r: '4.0'}
4122 - {os: macOS-latest, r: '3.6'}
4223 - {os: windows-latest, r: '4.1'}
4324 - {os: windows-latest, r: '4.0'}
44- # - {os: windows-latest, r: '3.6'} # xgboost fails
45- - {os: ubuntu-18.04, r: '4.1', vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
46- - {os: ubuntu-18.04, r: '4.0', vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
47- - {os: ubuntu-18.04, r: '3.6', vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
25+ - {os: windows-latest, r: '3.6'} # xgboost fails
26+ - {os: ubuntu-18.04, r: '4.1'} # , vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
27+ - {os: ubuntu-18.04, r: '4.0'} # , vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
28+ - {os: ubuntu-18.04, r: '3.6'} # , vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
4829
4930 env :
5031 R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
@@ -54,50 +35,55 @@ jobs:
5435 steps :
5536 - uses : actions/checkout@v2
5637
57- - uses : r-lib/actions/setup-r@master
38+ - uses : r-lib/actions/setup-pandoc@v2
39+
40+ - uses : r-lib/actions/setup-r@v2
5841 with :
5942 r-version : ${{ matrix.config.r }}
43+ http-user-agent : ${{ matrix.config.http-user-agent }}
44+ use-public-rspm : true
6045
61- - uses : r-lib/actions/setup-pandoc@master
62-
63- - name : Query dependencies
64- run : |
65- install.packages('remotes')
66- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
67- shell : Rscript {0}
46+ - uses : r-lib/actions/setup-r-dependencies@v2
47+ with :
48+ extra-packages : any::rcmdcheck
49+ needs : check
6850
69- - name : Cache R packages
70- if : runner.os != 'Windows'
71- uses : actions/cache@v1
51+ - uses : r-lib/actions/check-r-package@v2
7252 with :
73- path : ${{ env.R_LIBS_USER }}
74- key : ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
75- restore-keys : ${{ runner.os }}-r-${{ matrix.config.r }}-
53+ upload-snapshots : true
7654
77- - name : Install system dependencies
78- if : runner.os == 'Linux'
79- env :
80- RHUB_PLATFORM : linux-x86_64-ubuntu-gcc
81- run : |
82- Rscript -e "remotes::install_github('r-hub/sysreqs')"
83- sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
84- sudo -s eval "$sysreqs"
85- sudo apt-get install -y qpdf
55+ # - name: Cache R packages
56+ # if: runner.os != 'Windows'
57+ # uses: actions/cache@v1
58+ # with:
59+ # path: ${{ env.R_LIBS_USER }}
60+ # key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
61+ # restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
8662
87- - name : Install dependencies
88- run : |
89- remotes::install_deps(dependencies = TRUE)
90- remotes::install_cran("rcmdcheck")
91- shell : Rscript {0}
63+ # - name: Install system dependencies
64+ # if: runner.os == 'Linux'
65+ # env:
66+ # RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
67+ # run: |
68+ # Rscript -e "remotes::install_github('r-hub/sysreqs')"
69+ # sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
70+ # sudo -s eval "$sysreqs"
71+ # sudo apt-get install -y qpdf
9272
93- - name : Check
94- run : rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--run-donttest", "--run-dontrun", "--no-multiarch"),
95- build_args = "--compact-vignettes=no", error_on = "warning", check_dir = "check")
96- shell : Rscript {0}
73+ # - name: Install dependencies
74+ # run: |
75+ # remotes::install_deps(dependencies = TRUE)
76+ # remotes::install_cran("rcmdcheck")
77+ # shell: Rscript {0}
9778
98- - name : Upload check results
99- if : failure()
100- uses : actions/upload-artifact@master
101- with :
102- name : ${{ runner.os }}-r${{ matrix.config.r }}-results
103- path : check
79+ # - name: Check
80+ # run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--run-donttest", "--run-dontrun", "--no-multiarch"),
81+ # build_args = "--compact-vignettes=no", error_on = "warning", check_dir = "check")
82+ # shell: Rscript {0}
83+
84+ # - name: Upload check results
85+ # if: failure()
86+ # uses: actions/upload-artifact@master
87+ # with:
88+ # name: ${{ runner.os }}-r${{ matrix.config.r }}-results
89+ # path: check
0 commit comments