Skip to content

Commit

Permalink
Don't test Orbital on 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 12, 2023
1 parent 9611bb7 commit 7690a3d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- Others
version:
- '1'
- '~1.10.0-0'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ function prob_bvp_linear_bc!(res, u, p, t)
res[1] = u[1][1] - 1
res[2] = u[end][1]
end
prob_bvp_linear_function = ODEFunction(prob_bvp_linear_f!, analytic = prob_bvp_linear_analytic)
prob_bvp_linear_function = ODEFunction(prob_bvp_linear_f!,
analytic = prob_bvp_linear_analytic)
prob_bvp_linear_tspan = (0.0, 1.0)
prob_bvp_linear = BVProblem(prob_bvp_linear_function, prob_bvp_linear_bc!,
[1.0, 0.0], prob_bvp_linear_tspan, λ)
Expand All @@ -28,6 +29,6 @@ end
@testset "Interpolation" begin
@testset "MIRK$order" for order in (2, 3, 4, 5, 6)
@time sol = solve(prob_bvp_linear, mirk_solver(Val(order)); dt = 0.001)
@test sol(0.001) [0.998687464, -1.312035941] atol=testTol
@test sol(0.001)[0.998687464, -1.312035941] atol=testTol
end
end
12 changes: 9 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ const GROUP = uppercase(get(ENV, "GROUP", "ALL"))
@time @safetestset "Ray Tracing BVP" begin
include("shooting/ray_tracing.jl")
end
@time @safetestset "Orbital" begin
include("shooting/orbital.jl")
@static if VERSION v"1.10.0-beta2"
# Orbital Tests take extremely long to compile on Julia 1.9
@time @safetestset "Orbital" begin
include("shooting/orbital.jl")
end
end
end
end
Expand All @@ -28,6 +31,9 @@ const GROUP = uppercase(get(ENV, "GROUP", "ALL"))
@time @safetestset "Vector of Vector" begin
include("mirk/vectorofvector_initials.jl")
end
@time @safetestset "Interpolation Tests" begin
include("mirk/interpolation_tests.jl")
end
end
end

Expand All @@ -46,7 +52,7 @@ const GROUP = uppercase(get(ENV, "GROUP", "ALL"))
end
end
end

@time @testset "Interpolation Tests" begin
@time @safetestset "MIRK Interpolation Test" begin
include("interpolation_test.jl")
Expand Down

0 comments on commit 7690a3d

Please sign in to comment.