Skip to content

Commit

Permalink
split CI (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 authored May 14, 2022
1 parent d169605 commit c34feef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ jobs:
arch:
- x64
group:
- Tests
- Examples
- WCSMO14
- Core_Tests
- Extended_Tests
- Examples_1
- Examples_2
- WCSMO14_1
- WCSMO14_2
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand Down
16 changes: 13 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Test, SafeTestsets

const GROUP = get(ENV, "GROUP", "All")

if GROUP == "All" || GROUP == "Tests"
if GROUP == "All" || GROUP == "Core_Tests"
@safetestset "InpParser Tests" begin
include("inp_parser/parser.jl")
end
Expand All @@ -17,6 +17,9 @@ if GROUP == "All" || GROUP == "Tests"
@safetestset "Solver" begin
include("fea/solvers.jl")
end
end

if GROUP == "All" || GROUP == "Extended_Tests"
@safetestset "Truss Problem Tests" begin
include("truss_topopt_problems/test_problem.jl")
include("truss_topopt_problems/test_fea.jl")
Expand All @@ -25,7 +28,7 @@ if GROUP == "All" || GROUP == "Tests"
end
end

if GROUP == "All" || GROUP == "Examples"
if GROUP == "All" || GROUP == "Examples_1"
@safetestset "CSIMP example" begin
include("examples/csimp.jl")
end
Expand All @@ -38,6 +41,9 @@ if GROUP == "All" || GROUP == "Examples"
@safetestset "More examples" begin
include("examples/test_examples.jl")
end
end

if GROUP == "All" || GROUP == "Examples_2"
@safetestset "Neural network example" begin
include("examples/neural.jl")
end
Expand All @@ -46,13 +52,17 @@ if GROUP == "All" || GROUP == "Examples"
end
end

if GROUP == "All" || GROUP == "WCSMO14"
if GROUP == "All" || GROUP == "WCSMO14_1"
# This was originlly part of https://github.com/JuliaTopOpt/TopOpt.jl_WCSMO21
@safetestset "Continuum demos" begin
include("wcsmo14/demos/continuum/cont_compliance1.jl")
include("wcsmo14/demos/continuum/cont_compliance2.jl")
include("wcsmo14/demos/continuum/cont_stress.jl")
end
end

if GROUP == "All" || GROUP == "WCSMO14_2"
# This was originlly part of https://github.com/JuliaTopOpt/TopOpt.jl_WCSMO21
@safetestset "Truss 2d demos" begin
include("wcsmo14/demos/truss/truss_compliance_2d1.jl")
include("wcsmo14/demos/truss/truss_compliance_2d2.jl")
Expand Down

0 comments on commit c34feef

Please sign in to comment.