Skip to content

Commit 4625dae

Browse files
GA: modernizing
1 parent 12b9c66 commit 4625dae

File tree

3 files changed

+45
-28
lines changed

3 files changed

+45
-28
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,35 @@ name: R-CMD-check
44

55
jobs:
66
R-CMD-check:
7+
if: "! contains(github.event.head_commit.message, '[ci skip]')"
8+
79
runs-on: ${{ matrix.config.os }}
10+
811
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
9-
if: "! contains(github.event.head_commit.message, '[ci skip]')"
10-
12+
1113
strategy:
1214
fail-fast: false
1315
matrix:
1416
config:
15-
- { os: windows-latest, r: '3.5'}
16-
- { os: windows-latest, r: '3.6'}
17-
- { os: macOS-latest, r: '3.5'}
18-
- { os: macOS-latest, r: '3.6'}
19-
- { os: macOS-latest, r: 'devel'}
20-
- { os: ubuntu-16.04, r: '3.2', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
21-
- { os: ubuntu-16.04, r: '3.3', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
22-
- { os: ubuntu-16.04, r: '3.4', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
23-
- { os: ubuntu-16.04, r: '3.5', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
24-
- { os: ubuntu-16.04, r: '3.6', cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
17+
- {os: windows-latest, r: 'devel'}
18+
#2020-09-23# - {os: windows-latest, r: 'release'}
19+
- {os: macOS-latest, r: 'devel'}
20+
- {os: macOS-latest, r: 'release'}
21+
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
22+
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
23+
- {os: ubuntu-20.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
24+
- {os: ubuntu-20.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
25+
- {os: ubuntu-20.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
26+
- {os: ubuntu-20.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
2527

2628
env:
2729
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
28-
CRAN: ${{ matrix.config.cran }}
29-
30+
R_FUTURE_RNG_ONMISUSE: error
31+
RSPM: ${{ matrix.config.rspm }}
32+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3033

3134
steps:
32-
- uses: actions/checkout@v1
35+
- uses: actions/checkout@v2
3336

3437
- uses: r-lib/actions/setup-r@master
3538
with:
@@ -38,15 +41,19 @@ jobs:
3841
- uses: r-lib/actions/setup-pandoc@master
3942

4043
- name: Query dependencies
41-
run: Rscript -e "install.packages('remotes')" -e "saveRDS(remotes::dev_package_deps(dependencies = TRUE), 'depends.Rds', version = 2)"
44+
run: |
45+
install.packages('remotes')
46+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
47+
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
48+
shell: Rscript {0}
4249

4350
- name: Cache R packages
4451
if: runner.os != 'Windows'
4552
uses: actions/cache@v1
4653
with:
4754
path: ${{ env.R_LIBS_USER }}
48-
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
49-
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
55+
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
56+
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
5057

5158
- name: Install system dependencies
5259
if: runner.os == 'Linux'
@@ -59,20 +66,27 @@ jobs:
5966
6067
- name: Install dependencies
6168
run: |
62-
Rscript -e "library(remotes)" -e "update(readRDS('depends.Rds'))" -e "remotes::install_cran('rcmdcheck')"
63-
Rscript -e "install.packages('.', type = 'source', repos = NULL)"
69+
remotes::install_deps(dependencies = TRUE)
70+
remotes::install_cran("rcmdcheck")
71+
install.packages(".", repos=NULL, type="source") ## needed by parallel workers
72+
shell: Rscript {0}
73+
74+
- name: Session info
75+
run: |
76+
options(width = 100)
77+
pkgs <- installed.packages()[, "Package"]
78+
sessioninfo::session_info(pkgs, include_base = TRUE)
79+
shell: Rscript {0}
6480

6581
- name: Check
66-
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')"
82+
env:
83+
_R_CHECK_CRAN_INCOMING_REMOTE_: false
84+
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
85+
shell: Rscript {0}
6786

6887
- name: Upload check results
6988
if: failure()
7089
uses: actions/upload-artifact@master
7190
with:
7291
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
7392
path: check
74-
75-
- name: Test coverage
76-
if: matrix.config.os == 'ubuntu-16.04' && matrix.config.r == '3.6-HIDE'
77-
run: |
78-
Rscript -e "install.packages('covr')" -e 'covr::codecov(token = "${{secrets.CODECOV_TOKEN}}")'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020
revdep/data.sqlite
2121
revdep/checks/*
2222
revdep/library/*
23+
.github/

NEWS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
Package: future.batchtools
22
==========================
33

4-
Version: 0.9.0-9000 [2020-04-14]
4+
Version: 0.9.0-9000 [2020-09-30]
55

6-
* ...
6+
DOCUMENTATION:
7+
8+
* Documenting option 'future.debug' in help("future.batchtools.options").
79

810

911
Version: 0.9.0 [2020-04-14]

0 commit comments

Comments
 (0)