increase timeout when downloading jasp-desktop zip #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: windows-latest, r: '4.3.1'} | |
- {os: macOS-latest, r: '4.3.1'} | |
- {os: ubuntu-latest, r: '4.3.1'} | |
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v2 | |
# adapted from https://github.com/r-lib/actions/blob/v2/examples/check-standard.yaml | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
# no longer needed if https://github.com/rstudio/r-system-requirements/issues/81 is resolved | |
- name: Install libarchive on macOS | |
if: runner.os == 'macOS' | |
run: brew install libarchive | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rcmdcheck | |
needs: check | |
# Ideally we use this, but jaspTools does a lot of things that anger the R CMD Check at the moment... | |
# - uses: r-lib/actions/check-r-package@v2 | |
- name: Check | |
run: | | |
# ideally we use the one below (the default of r-lib/actions), but jaspTools has some warnings so we use something custom | |
#rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check") | |
result <- rcmdcheck::rcmdcheck( | |
args = c("--no-manual", "--as-cran", "--no-examples"), | |
error_on = "never", | |
check_dir = "check" | |
) | |
invalidWarnings <- function(warnings) { | |
if (length(warnings) == 0L) | |
return(FALSE) | |
# there was one warning when this was created and it's not easy to fix | |
if (length(warnings) == 1L && grepl(pattern = "imports not declared", warnings)) | |
return(FALSE) | |
# otherwise, new warnings got introduced | |
return(TRUE) | |
} | |
if (length(result[["errors"]]) > 0L || invalidWarnings(result[["warnings"]])) | |
quit(save = "no", status = 1) | |
shell: Rscript {0} |