Skip to content

Commit 15fe6d6

Browse files
committed
parallelize tests in codex
1 parent 9e6b7ae commit 15fe6d6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/setup_codex.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,16 @@ apt-get install -y --no-install-recommends r-cran-devtools # not strictly neces
112112

113113

114114

115+
# Interactively asked codex how many cores are available
116+
# it ran nproc and got back 5
117+
echo >> ~/.Renviron <<'EOF'
118+
NOT_CRAN=true
119+
TESTTHAT_CPUS=5
120+
EOF
121+
115122
echo >> ~/.Rprofile <<'EOF'
116123
options(
124+
Ncpus = 4L,
117125
testthat.use_colours = FALSE,
118126
# testthat.summary.max_reports: The maximum number of detailed test reports printed for the summary reporter (default: 10).
119127
testthat.summary.omit_dots = TRUE

0 commit comments

Comments
 (0)