From 54e75da23bc362fd99d24a0842e8d7dfca917991 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Wed, 11 Oct 2023 22:18:02 -0400 Subject: [PATCH] Split up the tests --- .github/workflows/CI.yml | 6 +++- test/runtests.jl | 62 +++++++++++++++++++++++----------------- 2 files changed, 40 insertions(+), 28 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e25f4f89..84629b0e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,7 +12,9 @@ jobs: strategy: matrix: group: - - Core + - Shooting + - MIRK + - Others version: - '1' steps: @@ -32,6 +34,8 @@ jobs: ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + env: + GROUP: ${{ matrix.group }} - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v3 with: diff --git a/test/runtests.jl b/test/runtests.jl index 7779d163..aa3bd432 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,41 +1,49 @@ using Test, SafeTestsets +const GROUP = uppercase(get(ENV, "GROUP", "ALL")) + @testset "Boundary Value Problem Tests" begin - @time @testset "Shooting Method Tests" begin - @time @safetestset "Shooting Tests" begin - include("shooting/shooting_tests.jl") - end - @time @safetestset "Ray Tracing BVP" begin - include("shooting/ray_tracing.jl") - end - @time @safetestset "Orbital" begin - include("shooting/orbital.jl") + if GROUP == "ALL" || GROUP == "SHOOTING" + @time @testset "Shooting Method Tests" begin + @time @safetestset "Shooting Tests" begin + include("shooting/shooting_tests.jl") + end + @time @safetestset "Ray Tracing BVP" begin + include("shooting/ray_tracing.jl") + end + @time @safetestset "Orbital" begin + include("shooting/orbital.jl") + end end end - @time @testset "Collocation Method (MIRK) Tests" begin - @time @safetestset "Ensemble" begin - include("mirk/ensemble.jl") - end - @time @safetestset "MIRK Convergence Tests" begin - include("mirk/mirk_convergence_tests.jl") - end - @time @safetestset "Vector of Vector" begin - include("mirk/vectorofvector_initials.jl") + if GROUP == "ALL" || GROUP == "MIRK" + @time @testset "Collocation Method (MIRK) Tests" begin + @time @safetestset "Ensemble" begin + include("mirk/ensemble.jl") + end + @time @safetestset "MIRK Convergence Tests" begin + include("mirk/mirk_convergence_tests.jl") + end + @time @safetestset "Vector of Vector" begin + include("mirk/vectorofvector_initials.jl") + end end end - @time @testset "Miscelleneous" begin - @time @safetestset "Non Vector Inputs" begin - include("misc/non_vector_inputs.jl") - end + if GROUP == "ALL" || GROUP == "OTHERS" + @time @testset "Miscelleneous" begin + @time @safetestset "Non Vector Inputs" begin + include("misc/non_vector_inputs.jl") + end - @time @safetestset "Type Stability" begin - include("misc/type_stability.jl") - end + @time @safetestset "Type Stability" begin + include("misc/type_stability.jl") + end - @time @safetestset "ODE Interface Tests" begin - include("misc/odeinterface_ex7.jl") + @time @safetestset "ODE Interface Tests" begin + include("misc/odeinterface_ex7.jl") + end end end end