Skip to content

Commit

Permalink
Merge pull request #35 from SciML/buildkite
Browse files Browse the repository at this point in the history
Add BuildKite testing
  • Loading branch information
nicholaskl97 authored Jan 24, 2025
2 parents 1995b41 + 3c69a6d commit 193600c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 19 deletions.
17 changes: 17 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
steps:
- label: "GPU"
plugins:
- JuliaCI/julia#v1:
version: "1"
- JuliaCI/julia-test#v1:
coverage: false # 1000x slowdown
agents:
queue: "juliagpu"
cuda: "*"
env:
GROUP: 'GPU'
JULIA_PKG_SERVER: "" # it often struggles with our large artifacts
# SECRET_CODECOV_TOKEN: "..."
timeout_in_minutes: 30
# Don't run Buildkite if the commit message includes the text [skip tests]
if: build.message !~ /\[skip tests\]/
2 changes: 1 addition & 1 deletion test/inverted_pendulum_ODESystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Test, LinearAlgebra, ForwardDiff

Random.seed!(200)

println("Inverted Pendulum - Policy Search 2")
println("Inverted Pendulum - Policy Search (ODESystem)")

######################### Define dynamics and domain ##########################

Expand Down
55 changes: 37 additions & 18 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,28 +1,47 @@
using SafeTestsets

const GROUP = lowercase(get(ENV, "GROUP", "all"))

@time begin
@time @safetestset "Damped simple harmonic oscillator" begin
include("damped_sho.jl")
end
@time @safetestset "Damped pendulum" begin
include("damped_pendulum.jl")
if GROUP == "all" || GROUP == "core"
@time @safetestset "Damped simple harmonic oscillator" begin
include("damped_sho.jl")
end
@time @safetestset "Damped pendulum" begin
include("damped_pendulum.jl")
end
end
@time @safetestset "Region of attraction estimation" begin
include("roa_estimation.jl")
end
@time @safetestset "Policy search - inverted pendulum" begin
include("inverted_pendulum.jl")

if GROUP == "all" || GROUP == "policy_search"
@time @safetestset "Policy search - inverted pendulum" begin
include("inverted_pendulum.jl")
end
@time @safetestset "Policy search - inverted pendulum (ODESystem)" begin
include("inverted_pendulum_ODESystem.jl")
end
end
@time @safetestset "Policy search - inverted pendulum 2" begin
include("inverted_pendulum_ODESystem.jl")

if GROUP == "all" || GROUP == "roa"
@time @safetestset "Region of attraction estimation" begin
include("roa_estimation.jl")
end
end
@time @safetestset "Local Lyapunov function search" begin
include("local_lyapunov.jl")

if GROUP == "all" || GROUP == "local_lyapunov"
@time @safetestset "Local Lyapunov function search" begin
include("local_lyapunov.jl")
end
end
@time @safetestset "Errors for partially-implemented extensions" begin
include("unimplemented.jl")

if GROUP == "all" || GROUP == "unimplemented"
@time @safetestset "Errors for partially-implemented extensions" begin
include("unimplemented.jl")
end
end
@time @safetestset "Benchmarking tool" begin
include("benchmark.jl")

if GROUP == "all" || GROUP == "benchmarking"
@time @safetestset "Benchmarking tool" begin
include("benchmark.jl")
end
end
end

0 comments on commit 193600c

Please sign in to comment.