From 244d7bbeb96446e736e64f1e30f12f82b5d10bf7 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Mon, 7 Oct 2024 19:51:55 -0400 Subject: [PATCH] test: lazy install packages --- lib/SimpleNonlinearSolve/Project.toml | 6 +----- lib/SimpleNonlinearSolve/test/runtests.jl | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/SimpleNonlinearSolve/Project.toml b/lib/SimpleNonlinearSolve/Project.toml index 5f708e564..27dd69fed 100644 --- a/lib/SimpleNonlinearSolve/Project.toml +++ b/lib/SimpleNonlinearSolve/Project.toml @@ -41,7 +41,6 @@ AllocCheck = "0.1.1" Aqua = "0.8.7" ArrayInterface = "7.16" BracketingNonlinearSolve = "1" -CUDA = "5.3" ChainRulesCore = "1.24" CommonSolve = "0.2.4" ConcreteStructs = "0.2.3" @@ -64,7 +63,6 @@ PrecompileTools = "1.2" Random = "1.10" ReverseDiff = "1.15" SciMLBase = "2.50" -SciMLSensitivity = "7.68" StaticArrays = "1.9" StaticArraysCore = "1.4.3" Test = "1.10" @@ -76,7 +74,6 @@ julia = "1.10" [extras] AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a" Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" -CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e" Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9" ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" @@ -86,7 +83,6 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" PolyesterForwardDiff = "98d1487c-24ca-40b6-b7ab-df2af84e126b" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267" -SciMLSensitivity = "1ed8b502-d754-442c-8d5d-10ac956f44a1" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a" @@ -94,4 +90,4 @@ Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [targets] -test = ["AllocCheck", "Aqua", "CUDA", "DiffEqBase", "Enzyme", "ExplicitImports", "InteractiveUtils", "NonlinearProblemLibrary", "Pkg", "PolyesterForwardDiff", "Random", "ReverseDiff", "SciMLSensitivity", "StaticArrays", "Test", "TestItemRunner", "Tracker", "Zygote"] +test = ["AllocCheck", "Aqua", "DiffEqBase", "Enzyme", "ExplicitImports", "InteractiveUtils", "NonlinearProblemLibrary", "Pkg", "PolyesterForwardDiff", "Random", "ReverseDiff", "StaticArrays", "Test", "TestItemRunner", "Tracker", "Zygote"] diff --git a/lib/SimpleNonlinearSolve/test/runtests.jl b/lib/SimpleNonlinearSolve/test/runtests.jl index a22783e59..cab77902c 100644 --- a/lib/SimpleNonlinearSolve/test/runtests.jl +++ b/lib/SimpleNonlinearSolve/test/runtests.jl @@ -4,6 +4,9 @@ using TestItemRunner, InteractiveUtils, Pkg const GROUP = lowercase(get(ENV, "GROUP", "All")) +(GROUP == "all" || GROUP == "cuda") && Pkg.add(["CUDA"]) +(GROUP == "all" || GROUP == "adjoint") && Pkg.add(["SciMLSensitivity"]) + if GROUP == "all" @run_package_tests else