diff --git a/lib/DataDrivenDMD/Project.toml b/lib/DataDrivenDMD/Project.toml index 53280ed5..8f154f11 100644 --- a/lib/DataDrivenDMD/Project.toml +++ b/lib/DataDrivenDMD/Project.toml @@ -15,6 +15,7 @@ DataDrivenDiffEq = "1.15" LinearAlgebra = "1.10" OrdinaryDiffEq = "6, 7" OrdinaryDiffEqFunctionMap = "1, 2" +Pkg = "1.10" SafeTestsets = "0.1" StableRNGs = "1" StatsBase = "0.34" @@ -24,10 +25,11 @@ julia = "1.10" [extras] OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" OrdinaryDiffEqFunctionMap = "d3585ca7-f5d3-4ba6-8057-292ed1abd90f" +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "OrdinaryDiffEq", "OrdinaryDiffEqFunctionMap", "StableRNGs", "StatsBase", "SafeTestsets"] +test = ["Pkg", "Test", "OrdinaryDiffEq", "OrdinaryDiffEqFunctionMap", "StableRNGs", "StatsBase", "SafeTestsets"] diff --git a/lib/DataDrivenDMD/test/qa/Project.toml b/lib/DataDrivenDMD/test/qa/Project.toml new file mode 100644 index 00000000..6049d18d --- /dev/null +++ b/lib/DataDrivenDMD/test/qa/Project.toml @@ -0,0 +1,14 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +DataDrivenDMD = "3c9adf31-5280-42ff-b439-b71cc6b07807" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +DataDrivenDMD = {path = "../.."} + +[compat] +Aqua = "0.8" +JET = "0.9, 0.10, 0.11" +Test = "1" +julia = "1.10" diff --git a/lib/DataDrivenDMD/test/qa/qa.jl b/lib/DataDrivenDMD/test/qa/qa.jl new file mode 100644 index 00000000..9ac5e175 --- /dev/null +++ b/lib/DataDrivenDMD/test/qa/qa.jl @@ -0,0 +1,13 @@ +using DataDrivenDMD +using Aqua +using JET +using Test + +@testset "QA" begin + @testset "Aqua" begin + Aqua.test_all(DataDrivenDMD) + end + @testset "JET" begin + JET.test_package(DataDrivenDMD; target_defined_modules = true) + end +end diff --git a/lib/DataDrivenDMD/test/runtests.jl b/lib/DataDrivenDMD/test/runtests.jl index 81d9ddb2..e72af837 100644 --- a/lib/DataDrivenDMD/test/runtests.jl +++ b/lib/DataDrivenDMD/test/runtests.jl @@ -1,5 +1,6 @@ using DataDrivenDiffEq using DataDrivenDMD +using Pkg using SafeTestsets using Test @@ -7,6 +8,11 @@ using Test const GROUP = get(ENV, "DATADRIVENDIFFEQ_TEST_GROUP", get(ENV, "GROUP", "All")) +function activate_qa_env() + Pkg.activate(joinpath(@__DIR__, "qa")) + return Pkg.instantiate() +end + @time begin if GROUP == "All" || GROUP == "Core" || GROUP == "DataDrivenDMD" @safetestset "Linear autonomous" begin @@ -22,4 +28,11 @@ const GROUP = get(ENV, "DATADRIVENDIFFEQ_TEST_GROUP", get(ENV, "GROUP", "All")) include("./Core/nonlinear_forced.jl") end end + + if GROUP == "QA" + activate_qa_env() + @safetestset "QA" begin + include("qa/qa.jl") + end + end end diff --git a/lib/DataDrivenDMD/test/test_groups.toml b/lib/DataDrivenDMD/test/test_groups.toml index 8f657c06..1fe84cd4 100644 --- a/lib/DataDrivenDMD/test/test_groups.toml +++ b/lib/DataDrivenDMD/test/test_groups.toml @@ -1,4 +1,5 @@ -# Each sublibrary only defines functional ("Core") tests; there are no QA -# (Aqua/JET/AllocCheck) suites here, so the default QA group is not declared. [Core] versions = ["lts", "1", "pre"] + +[QA] +versions = ["lts", "1"] diff --git a/lib/DataDrivenLux/Project.toml b/lib/DataDrivenLux/Project.toml index aa6675be..05357723 100644 --- a/lib/DataDrivenLux/Project.toml +++ b/lib/DataDrivenLux/Project.toml @@ -54,6 +54,7 @@ LuxCore = "1" Optim = "1.7, 2" Optimisers = "0.3, 0.4" OrdinaryDiffEq = "6, 7" +Pkg = "1.10" ProgressMeter = "1.7" Random = "1.10" SafeTestsets = "0.1" @@ -67,6 +68,7 @@ julia = "1.10" [extras] OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" @@ -74,4 +76,4 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "StableRNGs", "Random", "SafeTestsets", "StatsBase", "OrdinaryDiffEq"] +test = ["Pkg", "Test", "StableRNGs", "Random", "SafeTestsets", "StatsBase", "OrdinaryDiffEq"] diff --git a/lib/DataDrivenLux/test/qa/Project.toml b/lib/DataDrivenLux/test/qa/Project.toml new file mode 100644 index 00000000..164e6d60 --- /dev/null +++ b/lib/DataDrivenLux/test/qa/Project.toml @@ -0,0 +1,14 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +DataDrivenLux = "47881146-99d0-492a-8425-8f2f33327637" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +DataDrivenLux = {path = "../.."} + +[compat] +Aqua = "0.8" +JET = "0.9, 0.10, 0.11" +Test = "1" +julia = "1.10" diff --git a/lib/DataDrivenLux/test/qa/qa.jl b/lib/DataDrivenLux/test/qa/qa.jl new file mode 100644 index 00000000..be147625 --- /dev/null +++ b/lib/DataDrivenLux/test/qa/qa.jl @@ -0,0 +1,13 @@ +using DataDrivenLux +using Aqua +using JET +using Test + +@testset "QA" begin + @testset "Aqua" begin + Aqua.test_all(DataDrivenLux) + end + @testset "JET" begin + JET.test_package(DataDrivenLux; target_defined_modules = true) + end +end diff --git a/lib/DataDrivenLux/test/runtests.jl b/lib/DataDrivenLux/test/runtests.jl index f3a27c55..1c06408e 100644 --- a/lib/DataDrivenLux/test/runtests.jl +++ b/lib/DataDrivenLux/test/runtests.jl @@ -1,5 +1,6 @@ using DataDrivenDiffEq using DataDrivenLux +using Pkg using SafeTestsets using Test @@ -7,6 +8,11 @@ using Test const GROUP = get(ENV, "DATADRIVENDIFFEQ_TEST_GROUP", get(ENV, "GROUP", "All")) +function activate_qa_env() + Pkg.activate(joinpath(@__DIR__, "qa")) + return Pkg.instantiate() +end + @testset "DataDrivenLux" begin if GROUP == "All" || GROUP == "Core" || GROUP == "DataDrivenLux" @testset "Lux" begin @@ -27,3 +33,10 @@ const GROUP = get(ENV, "DATADRIVENDIFFEQ_TEST_GROUP", get(ENV, "GROUP", "All")) end end end + +if GROUP == "QA" + activate_qa_env() + @safetestset "QA" begin + include("qa/qa.jl") + end +end diff --git a/lib/DataDrivenLux/test/test_groups.toml b/lib/DataDrivenLux/test/test_groups.toml index 8f657c06..1fe84cd4 100644 --- a/lib/DataDrivenLux/test/test_groups.toml +++ b/lib/DataDrivenLux/test/test_groups.toml @@ -1,4 +1,5 @@ -# Each sublibrary only defines functional ("Core") tests; there are no QA -# (Aqua/JET/AllocCheck) suites here, so the default QA group is not declared. [Core] versions = ["lts", "1", "pre"] + +[QA] +versions = ["lts", "1"] diff --git a/lib/DataDrivenSR/Project.toml b/lib/DataDrivenSR/Project.toml index dcff83e5..e70f3a0e 100644 --- a/lib/DataDrivenSR/Project.toml +++ b/lib/DataDrivenSR/Project.toml @@ -13,6 +13,7 @@ DataDrivenDiffEq = {path = "../.."} [compat] DataDrivenDiffEq = "1.15" +Pkg = "1.10" Reexport = "1.2" StableRNGs = "1" StatsBase = "0.34" @@ -21,9 +22,10 @@ Test = "1.10" julia = "1.10" [extras] +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "StableRNGs", "StatsBase"] +test = ["Pkg", "Test", "StableRNGs", "StatsBase"] diff --git a/lib/DataDrivenSR/test/qa/Project.toml b/lib/DataDrivenSR/test/qa/Project.toml new file mode 100644 index 00000000..4c8d9ca9 --- /dev/null +++ b/lib/DataDrivenSR/test/qa/Project.toml @@ -0,0 +1,14 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +DataDrivenSR = "7fed8a53-d475-4873-af3a-ba53cceea094" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +DataDrivenSR = {path = "../.."} + +[compat] +Aqua = "0.8" +JET = "0.9, 0.10, 0.11" +Test = "1" +julia = "1.10" diff --git a/lib/DataDrivenSR/test/qa/qa.jl b/lib/DataDrivenSR/test/qa/qa.jl new file mode 100644 index 00000000..11ee918b --- /dev/null +++ b/lib/DataDrivenSR/test/qa/qa.jl @@ -0,0 +1,13 @@ +using DataDrivenSR +using Aqua +using JET +using Test + +@testset "QA" begin + @testset "Aqua" begin + Aqua.test_all(DataDrivenSR) + end + @testset "JET" begin + JET.test_package(DataDrivenSR; target_defined_modules = true) + end +end diff --git a/lib/DataDrivenSR/test/runtests.jl b/lib/DataDrivenSR/test/runtests.jl index 83c48667..75b3d751 100644 --- a/lib/DataDrivenSR/test/runtests.jl +++ b/lib/DataDrivenSR/test/runtests.jl @@ -1,12 +1,23 @@ using DataDrivenDiffEq using DataDrivenSR +using Pkg using Test using StableRNGs const GROUP = get(ENV, "DATADRIVENDIFFEQ_TEST_GROUP", get(ENV, "GROUP", "All")) +function activate_qa_env() + Pkg.activate(joinpath(@__DIR__, "qa")) + return Pkg.instantiate() +end + if GROUP == "All" || GROUP == "Core" || GROUP == "DataDrivenSR" @testset "Symbolic Regression" begin include("./Core/symbolic_regression.jl") end end + +if GROUP == "QA" + activate_qa_env() + include("qa/qa.jl") +end diff --git a/lib/DataDrivenSR/test/test_groups.toml b/lib/DataDrivenSR/test/test_groups.toml index 8f657c06..1fe84cd4 100644 --- a/lib/DataDrivenSR/test/test_groups.toml +++ b/lib/DataDrivenSR/test/test_groups.toml @@ -1,4 +1,5 @@ -# Each sublibrary only defines functional ("Core") tests; there are no QA -# (Aqua/JET/AllocCheck) suites here, so the default QA group is not declared. [Core] versions = ["lts", "1", "pre"] + +[QA] +versions = ["lts", "1"] diff --git a/lib/DataDrivenSparse/Project.toml b/lib/DataDrivenSparse/Project.toml index 0ae18070..db75b71c 100644 --- a/lib/DataDrivenSparse/Project.toml +++ b/lib/DataDrivenSparse/Project.toml @@ -16,6 +16,7 @@ DataDrivenDiffEq = {path = "../.."} DataDrivenDiffEq = "1.15" LinearAlgebra = "1.10" OrdinaryDiffEq = "6, 7" +Pkg = "1.10" Printf = "1.10" Random = "1.10" Reexport = "1.2" @@ -27,6 +28,7 @@ julia = "1.10" [extras] OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" @@ -34,4 +36,4 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "StableRNGs", "Random", "SafeTestsets", "StatsBase", "OrdinaryDiffEq"] +test = ["Pkg", "Test", "StableRNGs", "Random", "SafeTestsets", "StatsBase", "OrdinaryDiffEq"] diff --git a/lib/DataDrivenSparse/test/qa/Project.toml b/lib/DataDrivenSparse/test/qa/Project.toml new file mode 100644 index 00000000..3025a59a --- /dev/null +++ b/lib/DataDrivenSparse/test/qa/Project.toml @@ -0,0 +1,14 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +DataDrivenSparse = "5b588203-7d8b-4fab-a537-c31a7f73f46b" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +DataDrivenSparse = {path = "../.."} + +[compat] +Aqua = "0.8" +JET = "0.9, 0.10, 0.11" +Test = "1" +julia = "1.10" diff --git a/lib/DataDrivenSparse/test/qa/qa.jl b/lib/DataDrivenSparse/test/qa/qa.jl new file mode 100644 index 00000000..7454f4f2 --- /dev/null +++ b/lib/DataDrivenSparse/test/qa/qa.jl @@ -0,0 +1,13 @@ +using DataDrivenSparse +using Aqua +using JET +using Test + +@testset "QA" begin + @testset "Aqua" begin + Aqua.test_all(DataDrivenSparse) + end + @testset "JET" begin + JET.test_package(DataDrivenSparse; target_defined_modules = true) + end +end diff --git a/lib/DataDrivenSparse/test/runtests.jl b/lib/DataDrivenSparse/test/runtests.jl index 8971b69e..fef95a7c 100644 --- a/lib/DataDrivenSparse/test/runtests.jl +++ b/lib/DataDrivenSparse/test/runtests.jl @@ -1,9 +1,15 @@ using DataDrivenDiffEq using DataDrivenSparse +using Pkg using SafeTestsets const GROUP = get(ENV, "DATADRIVENDIFFEQ_TEST_GROUP", get(ENV, "GROUP", "All")) +function activate_qa_env() + Pkg.activate(joinpath(@__DIR__, "qa")) + return Pkg.instantiate() +end + if GROUP == "All" || GROUP == "Core" || GROUP == "DataDrivenSparse" @safetestset "Basic Sparse Regression" begin include("./Core/sparse_linear_solve.jl") @@ -21,3 +27,10 @@ if GROUP == "All" || GROUP == "Core" || GROUP == "DataDrivenSparse" include("./Core/cartpole.jl") end end + +if GROUP == "QA" + activate_qa_env() + @safetestset "QA" begin + include("qa/qa.jl") + end +end diff --git a/lib/DataDrivenSparse/test/test_groups.toml b/lib/DataDrivenSparse/test/test_groups.toml index 8f657c06..1fe84cd4 100644 --- a/lib/DataDrivenSparse/test/test_groups.toml +++ b/lib/DataDrivenSparse/test/test_groups.toml @@ -1,4 +1,5 @@ -# Each sublibrary only defines functional ("Core") tests; there are no QA -# (Aqua/JET/AllocCheck) suites here, so the default QA group is not declared. [Core] versions = ["lts", "1", "pre"] + +[QA] +versions = ["lts", "1"]