Skip to content

Commit

Permalink
update ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyhanson committed Oct 17, 2021
1 parent e58c785 commit 893f308
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check-mac-osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
- name: Install dependencies
run: |
options("install.packages.compile.from.source" = "never")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
remotes::install_cran("covr")
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/R-CMD-check-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) (${{ matrix.config.pkgs }} packages)

strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-20.04, r: 'devel'}
- {os: ubuntu-20.04, r: 'release', pkgs: 'all'}
- {os: ubuntu-20.04, r: 'devel', pkgs: 'all'}
- {os: ubuntu-20.04, r: 'devel', pkgs: 'depends only'}

env:
_R_REMOTES_NO_ERRORS_FROM_WARNINGS_: true
Expand Down Expand Up @@ -56,11 +57,10 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-cache-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-cache-

- name: Install system dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get -y install libcurl4-openssl-dev
while read -r cmd
Expand All @@ -82,6 +82,11 @@ jobs:
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- name: Set environmental variables for package checks
if: matrix.config.pkgs == 'depends only'
run: |
echo "_R_CHECK_DEPENDS_ONLY_=true" >> $GITHUB_ENV
- name: Check
run: |
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", "--no-build-vignettes"), error_on = "warning", check_dir = "check")
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:

- name: Install dependencies
run: |
options("install.packages.compile.from.source" = "never")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
remotes::install_cran("covr")
Expand Down

0 comments on commit 893f308

Please sign in to comment.