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
22 changes: 22 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,27 @@ function qa_group()
return @time @safetestset "Quality Assurance Tests" include("qa/qa_tests.jl")
end

function activate_gpu_env()
Pkg.activate(joinpath(@__DIR__, "gpu"))
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

# Root (integration) GPU tests. The test/gpu environment pulls the full
# OrdinaryDiffEq stack plus the relevant sublibraries and runs on the self-hosted
# `gpu` runner (Julia 1, where [sources] is honored natively). Every file in
# test/gpu is included, so the set stays in sync as GPU tests are added or
# removed there without touching this dispatch.
function gpu_group()
is_APPVEYOR && return
activate_gpu_env()
gpudir = joinpath(@__DIR__, "gpu")
for f in sort(filter(f -> endswith(f, ".jl"), readdir(gpudir)))
@time @eval @safetestset $("GPU: " * f) include($(joinpath(gpudir, f)))
end
return nothing
end

@time begin
# Monorepo sublibrary routing. The root reads GROUP to pick a `lib/<sub>`
# sublibrary, transitively develops its `[sources]` on Julia < 1.11, then
Expand Down Expand Up @@ -278,6 +299,7 @@ end
"Downstream" => downstream_group,
"AD" => ad_group,
"ODEInterfaceRegression" => odeinterface_group,
"GPU" => gpu_group,
),
# QA runs in the root test environment (no per-group Project.toml);
# its body is the ExplicitImports testset, not the standard
Expand Down
6 changes: 4 additions & 2 deletions test/test_groups.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ versions = ["lts", "1", "pre"]
versions = ["lts", "1", "pre"]
[AlgConvergence_I]
versions = ["lts", "1", "pre"]
[AlgConvergence_II]
versions = ["lts", "1", "pre"]
[AlgConvergence_III]
versions = ["lts", "1", "pre"]
[ModelingToolkit]
Expand All @@ -33,3 +31,7 @@ versions = ["lts"]
versions = ["lts", "1"]
[ODEInterfaceRegression]
versions = ["lts"]
[GPU]
versions = ["1"]
runner = ["self-hosted", "Linux", "X64", "gpu"]
timeout = 60
Loading