Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/OptimizationAuglag/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
Expand All @@ -22,6 +23,7 @@ OptimizationBase = {path = "../OptimizationBase"}
OptimizationOptimisers = {path = "../OptimizationOptimisers"}

[compat]
Pkg = "1"
SafeTestsets = "0.1"
ForwardDiff = "1.0.1"
LinearAlgebra = "1.10"
Expand All @@ -34,4 +36,4 @@ Test = "1.10.0"
julia = "1.10"

[targets]
test = ["Test", "ForwardDiff", "MLUtils", "OptimizationOptimisers", "Random", "SafeTestsets"]
test = ["Test", "ForwardDiff", "MLUtils", "OptimizationOptimisers", "Random", "SafeTestsets", "Pkg"]
15 changes: 15 additions & 0 deletions lib/OptimizationAuglag/test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
OptimizationAuglag = "2ea93f80-9333-43a1-a68d-1f53b957a421"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
OptimizationAuglag = {path = "../.."}

[compat]
Aqua = "0.8"
JET = "0.9, 0.10, 0.11"
OptimizationAuglag = "2"
Test = "1"
julia = "1.10"
10 changes: 10 additions & 0 deletions lib/OptimizationAuglag/test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using OptimizationAuglag, Aqua, JET
using Test

@testset "Aqua" begin
Aqua.test_all(OptimizationAuglag)
end

@testset "JET static analysis" begin
JET.test_package(OptimizationAuglag; target_defined_modules = true)
end
17 changes: 17 additions & 0 deletions lib/OptimizationAuglag/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
using Pkg
using SafeTestsets

const TEST_GROUP = get(ENV, "OPTIMIZATION_TEST_GROUP", "All")

# QA (Aqua + JET) runs in an isolated environment (test/qa) so its tooling deps
# never enter the main test target's resolve. On Julia < 1.11 the [sources] table
# is ignored, so develop the package by path to test the PR branch code.
function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
if VERSION < v"1.11.0-DEV.0"
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
end
return Pkg.instantiate()
end

if TEST_GROUP == "Core" || TEST_GROUP == "All"
@time @safetestset "Core" include("core_tests.jl")
end

if TEST_GROUP == "QA"
activate_qa_env()
@safetestset "Quality Assurance" include("qa/qa.jl")
end
3 changes: 3 additions & 0 deletions lib/OptimizationAuglag/test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[Core]
versions = ["lts", "1", "pre"]

[QA]
versions = ["lts", "1"]
4 changes: 3 additions & 1 deletion lib/OptimizationBBO/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand All @@ -17,6 +18,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
OptimizationBase = {path = "../OptimizationBase"}

[compat]
Pkg = "1"
SafeTestsets = "0.1"
julia = "1.10"
BlackBoxOptim = "0.6.3"
Expand All @@ -25,4 +27,4 @@ SciMLBase = "2.122.1, 3"
Reexport = "1.2"

[targets]
test = ["Random", "Test", "SafeTestsets"]
test = ["Random", "Test", "SafeTestsets", "Pkg"]
15 changes: 15 additions & 0 deletions lib/OptimizationBBO/test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
OptimizationBBO = "3e6eede4-6085-4f62-9a71-46d9bc1eb92b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
OptimizationBBO = {path = "../.."}

[compat]
Aqua = "0.8"
JET = "0.9, 0.10, 0.11"
OptimizationBBO = "0.4"
Test = "1"
julia = "1.10"
10 changes: 10 additions & 0 deletions lib/OptimizationBBO/test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using OptimizationBBO, Aqua, JET
using Test

@testset "Aqua" begin
Aqua.test_all(OptimizationBBO)
end

@testset "JET static analysis" begin
JET.test_package(OptimizationBBO; target_defined_modules = true)
end
17 changes: 17 additions & 0 deletions lib/OptimizationBBO/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
using Pkg
using SafeTestsets

const TEST_GROUP = get(ENV, "OPTIMIZATION_TEST_GROUP", "All")

# QA (Aqua + JET) runs in an isolated environment (test/qa) so its tooling deps
# never enter the main test target's resolve. On Julia < 1.11 the [sources] table
# is ignored, so develop the package by path to test the PR branch code.
function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
if VERSION < v"1.11.0-DEV.0"
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
end
return Pkg.instantiate()
end

if TEST_GROUP == "Core" || TEST_GROUP == "All"
@time @safetestset "Core" include("core_tests.jl")
end

if TEST_GROUP == "QA"
activate_qa_env()
@safetestset "Quality Assurance" include("qa/qa.jl")
end
3 changes: 3 additions & 0 deletions lib/OptimizationBBO/test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[Core]
versions = ["lts", "1", "pre"]

[QA]
versions = ["lts", "1"]
15 changes: 15 additions & 0 deletions lib/OptimizationBase/test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
OptimizationBase = "bca83a33-5cc9-4baa-983d-23429ab6bcbb"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
OptimizationBase = {path = "../.."}

[compat]
Aqua = "0.8"
JET = "0.9, 0.10, 0.11"
OptimizationBase = "5"
Test = "1"
julia = "1.10"
10 changes: 10 additions & 0 deletions lib/OptimizationBase/test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using OptimizationBase, Aqua, JET
using Test

@testset "Aqua" begin
Aqua.test_all(OptimizationBase)
end

@testset "JET static analysis" begin
JET.test_package(OptimizationBase; target_defined_modules = true)
end
17 changes: 17 additions & 0 deletions lib/OptimizationBase/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
using Pkg
using SafeTestsets

const TEST_GROUP = get(ENV, "OPTIMIZATION_TEST_GROUP", "All")

# QA (Aqua + JET) runs in an isolated environment (test/qa) so its tooling deps
# never enter the main test target's resolve. On Julia < 1.11 the [sources] table
# is ignored, so develop the package by path to test the PR branch code.
function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
if VERSION < v"1.11.0-DEV.0"
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
end
return Pkg.instantiate()
end

if TEST_GROUP == "Core" || TEST_GROUP == "All"
@time @safetestset "Core" include("core_tests.jl")
end

if TEST_GROUP == "QA"
activate_qa_env()
@safetestset "Quality Assurance" include("qa/qa.jl")
end
3 changes: 3 additions & 0 deletions lib/OptimizationBase/test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[Core]
versions = ["lts", "1", "pre"]

[QA]
versions = ["lts", "1"]
4 changes: 3 additions & 1 deletion lib/OptimizationCMAEvolutionStrategy/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
OptimizationBase = {path = "../OptimizationBase"}

[compat]
Pkg = "1"
SafeTestsets = "0.1"
CMAEvolutionStrategy = "0.2"
julia = "1.10"
Expand All @@ -24,4 +26,4 @@ SciMLBase = "2.122.1, 3"
Reexport = "1.2"

[targets]
test = ["Test", "SafeTestsets"]
test = ["Test", "SafeTestsets", "Pkg"]
15 changes: 15 additions & 0 deletions lib/OptimizationCMAEvolutionStrategy/test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
OptimizationCMAEvolutionStrategy = "bd407f91-200f-4536-9381-e4ba712f53f8"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
OptimizationCMAEvolutionStrategy = {path = "../.."}

[compat]
Aqua = "0.8"
JET = "0.9, 0.10, 0.11"
OptimizationCMAEvolutionStrategy = "0.3"
Test = "1"
julia = "1.10"
10 changes: 10 additions & 0 deletions lib/OptimizationCMAEvolutionStrategy/test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using OptimizationCMAEvolutionStrategy, Aqua, JET
using Test

@testset "Aqua" begin
Aqua.test_all(OptimizationCMAEvolutionStrategy)
end

@testset "JET static analysis" begin
JET.test_package(OptimizationCMAEvolutionStrategy; target_defined_modules = true)
end
17 changes: 17 additions & 0 deletions lib/OptimizationCMAEvolutionStrategy/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
using Pkg
using SafeTestsets

const TEST_GROUP = get(ENV, "OPTIMIZATION_TEST_GROUP", "All")

# QA (Aqua + JET) runs in an isolated environment (test/qa) so its tooling deps
# never enter the main test target's resolve. On Julia < 1.11 the [sources] table
# is ignored, so develop the package by path to test the PR branch code.
function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
if VERSION < v"1.11.0-DEV.0"
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
end
return Pkg.instantiate()
end

if TEST_GROUP == "Core" || TEST_GROUP == "All"
@time @safetestset "Core" include("core_tests.jl")
end

if TEST_GROUP == "QA"
activate_qa_env()
@safetestset "Quality Assurance" include("qa/qa.jl")
end
3 changes: 3 additions & 0 deletions lib/OptimizationCMAEvolutionStrategy/test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[Core]
versions = ["lts", "1", "pre"]

[QA]
versions = ["lts", "1"]
4 changes: 3 additions & 1 deletion lib/OptimizationEvolutionary/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand All @@ -17,6 +18,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
OptimizationBase = {path = "../OptimizationBase"}

[compat]
Pkg = "1"
SafeTestsets = "0.1"
julia = "1.10"
OptimizationBase = "5"
Expand All @@ -25,4 +27,4 @@ SciMLBase = "2.122.1, 3"
Reexport = "1.2"

[targets]
test = ["Random", "Test", "SafeTestsets"]
test = ["Random", "Test", "SafeTestsets", "Pkg"]
15 changes: 15 additions & 0 deletions lib/OptimizationEvolutionary/test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
OptimizationEvolutionary = "cb963754-43f6-435e-8d4b-99009ff27753"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
OptimizationEvolutionary = {path = "../.."}

[compat]
Aqua = "0.8"
JET = "0.9, 0.10, 0.11"
OptimizationEvolutionary = "0.4"
Test = "1"
julia = "1.10"
10 changes: 10 additions & 0 deletions lib/OptimizationEvolutionary/test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using OptimizationEvolutionary, Aqua, JET
using Test

@testset "Aqua" begin
Aqua.test_all(OptimizationEvolutionary)
end

@testset "JET static analysis" begin
JET.test_package(OptimizationEvolutionary; target_defined_modules = true)
end
17 changes: 17 additions & 0 deletions lib/OptimizationEvolutionary/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
using Pkg
using SafeTestsets

const TEST_GROUP = get(ENV, "OPTIMIZATION_TEST_GROUP", "All")

# QA (Aqua + JET) runs in an isolated environment (test/qa) so its tooling deps
# never enter the main test target's resolve. On Julia < 1.11 the [sources] table
# is ignored, so develop the package by path to test the PR branch code.
function activate_qa_env()
Pkg.activate(joinpath(@__DIR__, "qa"))
if VERSION < v"1.11.0-DEV.0"
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
end
return Pkg.instantiate()
end

if TEST_GROUP == "Core" || TEST_GROUP == "All"
@time @safetestset "Core" include("core_tests.jl")
end

if TEST_GROUP == "QA"
activate_qa_env()
@safetestset "Quality Assurance" include("qa/qa.jl")
end
3 changes: 3 additions & 0 deletions lib/OptimizationEvolutionary/test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[Core]
versions = ["lts", "1", "pre"]

[QA]
versions = ["lts", "1"]
4 changes: 3 additions & 1 deletion lib/OptimizationGCMAES/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
GCMAES = "4aa9d100-eb0f-11e8-15f1-25748831eb3b"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand All @@ -17,6 +18,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
OptimizationBase = {path = "../OptimizationBase"}

[compat]
Pkg = "1"
SafeTestsets = "0.1"
julia = "1.10"
OptimizationBase = "5.1"
Expand All @@ -25,4 +27,4 @@ Reexport = "1.2"
GCMAES = "0.1.34"

[targets]
test = ["ForwardDiff", "Test", "SafeTestsets"]
test = ["ForwardDiff", "Test", "SafeTestsets", "Pkg"]
Loading
Loading