8000 adding exit code check to test_file · allometric/models@9883b54 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9883b54

Browse files
committed
adding exit code check to test_file
1 parent c7fe5cb commit 9883b54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test-model-install.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
run: |
3636
devtools::install("./allometric");
3737
devtools::load_all("./allometric");
38-
testthat::test_file("./allometric/tests/testthat/test-install.R")
38+
exit_data <- testthat::test_file("./allometric/tests/testthat/test-install.R");
39+
exit_data <- as.data.frame(exit_data);
40+
exit_code <- ifelse(sum(exit_data$failed, exit_data$error) == 0, 0, 1);
41+
quit(save = "no", status = exit_code, runLast = FALSE);
3942
shell: Rscript {0}
4043

0 commit comments

Comments
 (0)
0