Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate test failures #441

Merged
merged 9 commits into from
Sep 21, 2023
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
Distributions = "0.21, 0.22, 0.23, 0.24, 0.25"
ExtendableSparse = "0.4, 0.5, 0.6"
ExtendableSparse = "1"
Flux = "0.12, 0.13"
GLM = "1.3"
IterativeSolvers = "0.9"
PolyChaos = "0.2"
QuasiMonteCarlo = "0.2.14"
QuasiMonteCarlo = "=0.2.16"
Zygote = "0.4, 0.5, 0.6"
julia = "1.6"

Expand Down
2 changes: 2 additions & 0 deletions lib/SurrogatesMOE/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using SafeTestsets
using Random
Random.seed!(100)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use StableRNGs.jl


# #test 1D function that is discontinuous
@safetestset "1D" begin
Expand Down
54 changes: 30 additions & 24 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,34 @@ function dev_subpkg(subpkg)
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
Pkg.develop(PackageSpec(path = subpkg_path))
end
for pkg in [
"SurrogatesAbstractGPs", "SurrogatesFlux",
"SurrogatesPolyChaos", "SurrogatesMOE",
"SurrogatesRandomForest", "SurrogatesSVM"]
@time begin
dev_subpkg(pkg)
Pkg.test(pkg)
end
end

@time @safetestset "GEKPLS.jl" begin include("GEKPLS.jl") end
@time @safetestset "Radials.jl" begin include("Radials.jl") end
@time @safetestset "Kriging.jl" begin include("Kriging.jl") end
@time @safetestset "Sampling" begin include("sampling.jl") end
@time @safetestset "Optimization" begin include("optimization.jl") end
@time @safetestset "LinearSurrogate" begin include("linearSurrogate.jl") end
@time @safetestset "Lobachevsky" begin include("lobachevsky.jl") end
@time @safetestset "InverseDistanceSurrogate" begin include("inverseDistanceSurrogate.jl") end
@time @safetestset "SecondOrderPolynomialSurrogate" begin include("secondOrderPolynomialSurrogate.jl") end
# @time @safetestset "AD_Compatibility" begin include("AD_compatibility.jl") end
@time @safetestset "Wendland" begin include("Wendland.jl") end
@time @safetestset "VariableFidelity" begin include("VariableFidelity.jl") end
@time @safetestset "Earth" begin include("earth.jl") end
@time @safetestset "Gradient Enhanced Kriging" begin include("GEK.jl") end
@time @safetestset "Section Samplers" begin include("SectionSampleTests.jl") end
@testset "Surrogates" begin
@testset "Libs" begin
@testset "$pkg" for pkg in [
"SurrogatesAbstractGPs", "SurrogatesFlux",
"SurrogatesPolyChaos", "SurrogatesMOE",
"SurrogatesRandomForest", "SurrogatesSVM"]
@time begin
dev_subpkg(pkg)
Pkg.test(pkg)
end
end
end
@testset "Algorithms" begin
@time @safetestset "GEKPLS" begin include("GEKPLS.jl") end
@time @safetestset "Radials" begin include("Radials.jl") end
@time @safetestset "Kriging" begin include("Kriging.jl") end
@time @safetestset "Sampling" begin include("sampling.jl") end
@time @safetestset "Optimization" begin include("optimization.jl") end
@time @safetestset "LinearSurrogate" begin include("linearSurrogate.jl") end
@time @safetestset "Lobachevsky" begin include("lobachevsky.jl") end
@time @safetestset "InverseDistanceSurrogate" begin include("inverseDistanceSurrogate.jl") end
@time @safetestset "SecondOrderPolynomialSurrogate" begin include("secondOrderPolynomialSurrogate.jl") end
# @time @safetestset "AD_Compatibility" begin include("AD_compatibility.jl") end
@time @safetestset "Wendland" begin include("Wendland.jl") end
@time @safetestset "VariableFidelity" begin include("VariableFidelity.jl") end
@time @safetestset "Earth" begin include("earth.jl") end
@time @safetestset "Gradient Enhanced Kriging" begin include("GEK.jl") end
@time @safetestset "Section Samplers" begin include("SectionSampleTests.jl") end
end
end
Loading