Skip to content

Commit 8264489

Browse files
committed
ci: run windows tests with a single worker
1 parent 6b0002b commit 8264489

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

lib/NonlinearSolveFirstOrder/test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ using ReTestItems, NonlinearSolveFirstOrder, Hwloc, InteractiveUtils, Pkg
55
const GROUP = lowercase(get(ENV, "GROUP", "All"))
66

77
const RETESTITEMS_NWORKERS = parse(
8-
Int, get(ENV, "RETESTITEMS_NWORKERS", string(min(Hwloc.num_physical_cores(), 4)))
8+
Int, get(ENV, "RETESTITEMS_NWORKERS",
9+
string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4))
10+
)
911
)
1012
const RETESTITEMS_NWORKER_THREADS = parse(Int,
1113
get(

lib/NonlinearSolveQuasiNewton/test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ using ReTestItems, NonlinearSolveQuasiNewton, Hwloc, InteractiveUtils, Pkg
55
const GROUP = lowercase(get(ENV, "GROUP", "All"))
66

77
const RETESTITEMS_NWORKERS = parse(
8-
Int, get(ENV, "RETESTITEMS_NWORKERS", string(min(Hwloc.num_physical_cores(), 4)))
8+
Int, get(ENV, "RETESTITEMS_NWORKERS",
9+
string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4))
10+
)
911
)
1012
const RETESTITEMS_NWORKER_THREADS = parse(Int,
1113
get(

lib/NonlinearSolveSpectralMethods/test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ using ReTestItems, NonlinearSolveSpectralMethods, Hwloc, InteractiveUtils, Pkg
55
const GROUP = lowercase(get(ENV, "GROUP", "All"))
66

77
const RETESTITEMS_NWORKERS = parse(
8-
Int, get(ENV, "RETESTITEMS_NWORKERS", string(min(Hwloc.num_physical_cores(), 4)))
8+
Int, get(ENV, "RETESTITEMS_NWORKERS",
9+
string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4))
10+
)
911
)
1012
const RETESTITEMS_NWORKER_THREADS = parse(Int,
1113
get(

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const EXTRA_PKGS = Pkg.PackageSpec[]
1010
length(EXTRA_PKGS) 1 && Pkg.add(EXTRA_PKGS)
1111

1212
const RETESTITEMS_NWORKERS = parse(
13-
Int, get(ENV, "RETESTITEMS_NWORKERS", string(min(Hwloc.num_physical_cores(), 4)))
13+
Int, get(ENV, "RETESTITEMS_NWORKERS",
14+
string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4))
15+
)
1416
)
1517
const RETESTITEMS_NWORKER_THREADS = parse(Int,
1618
get(

0 commit comments

Comments
 (0)