Skip to content

Commit

Permalink
[r] Tweak CI rules for extended runs for macOS (closes #1774) (#1779)
Browse files Browse the repository at this point in the history
* [r] Tweak CI rules for extended runs for macOS

* [r] Minor tweak to comment only [ci skip]
  • Loading branch information
eddelbuettel authored Oct 11, 2023
1 parent 8d6b1c7 commit 2d097e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion apis/r/tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ library(testthat)
library(tiledbsoma)

tiledbsoma::show_package_versions()
# more verbose reporting: test_check("tiledbsoma", reporter=default_reporter())
test_check("tiledbsoma", reporter=default_reporter())
9 changes: 8 additions & 1 deletion apis/r/tests/testthat/helper-test-tiledb-objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ create_empty_test_array <- function(uri) {
extended_tests <- function() {
## check if at CI, if so extended test
## could add if pre-release number ie 1.4.3.1 instead of 1.4.3
Sys.getenv("CI", "") != ""
ci_set <- Sys.getenv("CI", "") != ""
## check for macOS
macos <- Sys.info()["sysname"] == "Darwin"
## check for possible override of 'force' or 'Force'
ci_override <- tolower(Sys.getenv("CI", "")) == "force"
## run extended tests if CI is set, and if either not macOS or 'force' has been set
## (ie setting 'force' will enable on macOS too)
ci_set && (!macos || ci_override)
}

covr_tests <- function() {
Expand Down

0 comments on commit 2d097e0

Please sign in to comment.