Skip to content

Commit

Permalink
adding logic to skip additional tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagomaie committed Dec 12, 2023
1 parent 330f503 commit 5f044ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test2-CimpleG-elasticnet.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

test_that("signatures and deconv w/ ElasticNet", {
skip_on_ci()
set.seed(42)
res <- suppressWarnings(CimpleG(
train_data = train_data,
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test5-CimpleG-parab.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

test_that("signatures are generated w/ CimpleG_parab", {
skip_on_ci()
set.seed(42)
res <- CimpleG(
train_data = train_data,
Expand All @@ -18,6 +19,7 @@ test_that("signatures are generated w/ CimpleG_parab", {
})

test_that("signatures are generated w/ CimpleG_parab when providing single target column", {
skip_on_ci()
set.seed(42)
res <- CimpleG(
train_data = train_data,
Expand All @@ -35,6 +37,7 @@ test_that("signatures are generated w/ CimpleG_parab when providing single targe
})

test_that("signatures are generated w/ CimpleG_parab when just train_only is set to TRUE", {
skip_on_ci()
set.seed(42)
res <- CimpleG(
train_data = train_data,
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test8-CimpleG-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ sig_list <-list(blood_cells="cg04785083", neurons="cg24548498")

test_that("signature_plot works with CimpleG, character vectors and lists", {

skip_on_ci()
plt_res <- signature_plot(res, test_data, test_targets, "gsm", "cell_type")
plt_vec <- signature_plot(sig_vec, test_data, test_targets, "gsm", "cell_type")
plt_list <- signature_plot(sig_list, test_data, test_targets, "gsm", "cell_type")
Expand Down

0 comments on commit 5f044ca

Please sign in to comment.