@@ -339,6 +339,37 @@ def create_disable_test_commands_variants():
339339 return [create_variant (tasks , display_name , host = host , expansions = expansions )]
340340
341341
342+ def create_test_numpy_tasks ():
343+ tasks = []
344+ for python in MIN_MAX_PYTHON :
345+ tags = ["binary" , "vector" , f"python-{ python } " , "test-numpy" ]
346+ task_name = get_task_name ("test-numpy" , python = python )
347+ test_func = FunctionCall (func = "test numpy" , vars = dict (TOOLCHAIN_VERSION = python ))
348+ tasks .append (EvgTask (name = task_name , tags = tags , commands = [test_func ]))
349+ return tasks
350+
351+
352+ def create_test_numpy_variants () -> list [BuildVariant ]:
353+ variants = []
354+ base_display_name = "Test Numpy"
355+
356+ # Test a subset on each of the other platforms.
357+ for host_name in ("rhel8" , "macos" , "macos-arm64" , "win64" , "win32" ):
358+ tasks = [".test-numpy" ]
359+ host = HOSTS [host_name ]
360+ tags = ["binary" , "vector" ]
361+ if host_name == "rhel8" :
362+ tags .append ("pr" )
363+ expansions = dict ()
364+ if host_name == "win32" :
365+ expansions ["IS_WIN32" ] = "1"
366+ display_name = get_variant_name (base_display_name , host )
367+ variant = create_variant (tasks , display_name , host = host , tags = tags , expansions = expansions )
368+ variants .append (variant )
369+
370+ return variants
371+
372+
342373def create_oidc_auth_variants ():
343374 variants = []
344375 for host_name in ["ubuntu22" , "macos" , "win64" ]:
@@ -1140,6 +1171,14 @@ def create_run_tests_func():
11401171 return "run tests" , [setup_cmd , test_cmd ]
11411172
11421173
1174+ def create_test_numpy_func ():
1175+ includes = ["TOOLCHAIN_VERSION" ]
1176+ test_cmd = get_subprocess_exec (
1177+ include_expansions_in_env = includes , args = [".evergreen/just.sh" , "test-numpy" ]
1178+ )
1179+ return "test numpy" , [test_cmd ]
1180+
1181+
11431182def create_cleanup_func ():
11441183 cmd = get_subprocess_exec (args = [".evergreen/scripts/cleanup.sh" ])
11451184 return "cleanup" , [cmd ]
0 commit comments