Skip to content

Commit

Permalink
Update FORK tests' skip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
asardaes committed Apr 18, 2021
1 parent 5f878e3 commit 1380d66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ jobs:
- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
_R_CHECK_LIMIT_CORES_: "TRUE"
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(build_args = "--compact-vignettes", args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
rcmdcheck::rcmdcheck(build_args = "--compact-vignettes", args = c("--no-manual", "--as-cran"), error_on = "error", check_dir = "check")
shell: Rscript {0}
continue-on-error: ${{ matrix.config.r == 'devel' }}

Expand Down
7 changes: 4 additions & 3 deletions tests/testthat/test-06-parallel.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context("Parallel tests")
chk <- Sys.getenv("_R_CHECK_LIMIT_CORES_", "")

if (nzchar(chk) && chk == "TRUE") {
# use 2 cores in CHECK/Travis/AppVeyor
# use 2 cores in CI
num_workers <- 2L
} else {
# use all cores in devtools::test()
Expand Down Expand Up @@ -50,12 +50,13 @@ test_that("Parallel computation gives the same results as sequential", {

test_that("Parallel FORK computation gives the same results as sequential", {
skip_on_cran()
skip_on_travis()
skip_on_ci()
skip_on_os("windows")
skip_if(nzchar(Sys.getenv("R_COVR")), "calculating coverage")

if (getOption("dtwclust_skip_par_tests", FALSE))
if (getOption("dtwclust_skip_par_tests", FALSE)) {
skip("Parallel tests disabled explicitly.")
}

# Also test FORK in Linux
cat(" - Test FORKs:\n")
Expand Down

0 comments on commit 1380d66

Please sign in to comment.