From bf19ba4ed4aa6215d1416aa3f561d31bed773ff2 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Fri, 1 Nov 2024 14:49:09 -0400 Subject: [PATCH] ci: run windows tests with a single worker --- lib/NonlinearSolveFirstOrder/test/runtests.jl | 4 +++- lib/NonlinearSolveQuasiNewton/test/runtests.jl | 4 +++- lib/NonlinearSolveSpectralMethods/test/runtests.jl | 4 +++- test/runtests.jl | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/NonlinearSolveFirstOrder/test/runtests.jl b/lib/NonlinearSolveFirstOrder/test/runtests.jl index d19d33de8..ff3138344 100644 --- a/lib/NonlinearSolveFirstOrder/test/runtests.jl +++ b/lib/NonlinearSolveFirstOrder/test/runtests.jl @@ -5,7 +5,9 @@ using ReTestItems, NonlinearSolveFirstOrder, Hwloc, InteractiveUtils, Pkg const GROUP = lowercase(get(ENV, "GROUP", "All")) const RETESTITEMS_NWORKERS = parse( - Int, get(ENV, "RETESTITEMS_NWORKERS", string(min(Hwloc.num_physical_cores(), 4))) + Int, get(ENV, "RETESTITEMS_NWORKERS", + string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4)) + ) ) const RETESTITEMS_NWORKER_THREADS = parse(Int, get( diff --git a/lib/NonlinearSolveQuasiNewton/test/runtests.jl b/lib/NonlinearSolveQuasiNewton/test/runtests.jl index 807441bbc..fd5e95f9f 100644 --- a/lib/NonlinearSolveQuasiNewton/test/runtests.jl +++ b/lib/NonlinearSolveQuasiNewton/test/runtests.jl @@ -5,7 +5,9 @@ using ReTestItems, NonlinearSolveQuasiNewton, Hwloc, InteractiveUtils, Pkg const GROUP = lowercase(get(ENV, "GROUP", "All")) const RETESTITEMS_NWORKERS = parse( - Int, get(ENV, "RETESTITEMS_NWORKERS", string(min(Hwloc.num_physical_cores(), 4))) + Int, get(ENV, "RETESTITEMS_NWORKERS", + string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4)) + ) ) const RETESTITEMS_NWORKER_THREADS = parse(Int, get( diff --git a/lib/NonlinearSolveSpectralMethods/test/runtests.jl b/lib/NonlinearSolveSpectralMethods/test/runtests.jl index 5256e0e6f..4415c0a53 100644 --- a/lib/NonlinearSolveSpectralMethods/test/runtests.jl +++ b/lib/NonlinearSolveSpectralMethods/test/runtests.jl @@ -5,7 +5,9 @@ using ReTestItems, NonlinearSolveSpectralMethods, Hwloc, InteractiveUtils, Pkg const GROUP = lowercase(get(ENV, "GROUP", "All")) const RETESTITEMS_NWORKERS = parse( - Int, get(ENV, "RETESTITEMS_NWORKERS", string(min(Hwloc.num_physical_cores(), 4))) + Int, get(ENV, "RETESTITEMS_NWORKERS", + string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4)) + ) ) const RETESTITEMS_NWORKER_THREADS = parse(Int, get( diff --git a/test/runtests.jl b/test/runtests.jl index 59a43c2f9..f92a0725c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -10,7 +10,9 @@ const EXTRA_PKGS = Pkg.PackageSpec[] length(EXTRA_PKGS) ≥ 1 && Pkg.add(EXTRA_PKGS) const RETESTITEMS_NWORKERS = parse( - Int, get(ENV, "RETESTITEMS_NWORKERS", string(min(Hwloc.num_physical_cores(), 4))) + Int, get(ENV, "RETESTITEMS_NWORKERS", + string(min(ifelse(Sys.iswindows(), 0, Hwloc.num_physical_cores()), 4)) + ) ) const RETESTITEMS_NWORKER_THREADS = parse(Int, get(