From e4503b7d9aadbbb4075837e7cb1ad7b0636648bc Mon Sep 17 00:00:00 2001
From: "Pavel N. Krivitsky"
Date: Tue, 5 Nov 2024 20:07:44 +1100
Subject: [PATCH] ALWAYS REBASE TO KEEP THIS COMMIT ON TOP! Setup for the
non-parallel testthat branch: Set testthat to not work in parallel, and
remove R CMD check.
---
.github/workflows/R-CMD-check.yaml | 2 +-
DESCRIPTION | 2 +-
tests/testthat.R | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml
index 2553f5419..31f935cda 100644
--- a/.github/workflows/R-CMD-check.yaml
+++ b/.github/workflows/R-CMD-check.yaml
@@ -94,7 +94,7 @@ jobs:
run: |
if [[ "${{ env.IAM }}" == 'public' ]] # Public: full set.
then
- config='${{ env.PUBLIC_CONFIG }}'
+ config='${{ env.RELEASE_CONFIG }}'
elif [[ "${{ env.FOUND_PUBLIC }}" != '0' ]] # Private with no public analogue: reduced set.
then
config='${{ env.PRIVATE_CONFIG }}'
diff --git a/DESCRIPTION b/DESCRIPTION
index 552c45de8..8d9d9a9ee 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -61,7 +61,7 @@ URL: https://statnet.org
VignetteBuilder: knitr
RoxygenNote: 7.3.2.9000
Roxygen: list(markdown = TRUE)
-Config/testthat/parallel: true
+Config/testthat/parallel: false
Config/testthat/edition: 3
Config/build/clean-inst-doc: FALSE
Encoding: UTF-8
diff --git a/tests/testthat.R b/tests/testthat.R
index 2da429dde..7babc1b07 100644
--- a/tests/testthat.R
+++ b/tests/testthat.R
@@ -10,4 +10,4 @@
library(testthat)
library(ergm)
-test_check("ergm")
+test_check("ergm", reporter = LocationReporter)