Skip to content

Commit f34d63e

Browse files
committed
regroup test groups
1 parent 356c8e4 commit f34d63e

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@ jobs:
1414
strategy:
1515
matrix:
1616
group:
17-
- ReactionSystem
18-
- DSL
19-
- CompositionalModelling
20-
- Miscellaneous
21-
- NetworkAnalysis
17+
- ModelCreation
18+
- Miscellaneous-NetworkAnalysis
2219
- Simulation
23-
- Upstream
2420
- Spatial
25-
- Visualisation
26-
- Extensions
21+
- Visualisation-Extensions
2722
version:
2823
- '1.10.2'
2924
steps:

test/reactionsystem_core/reactionsystem_structure.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,10 @@ end
747747

748748
# Tests construction of empty reaction networks.
749749
let
750+
function unpacksys(sys)
751+
get_eqs(sys), get_iv(sys), get_unknowns(sys), get_ps(sys), nameof(sys), get_systems(sys)
752+
end
753+
750754
empty_network_1 = @reaction_network
751755
eqs, iv, ps, name, systems = unpacksys(empty_network_1)
752756
@test length(eqs) == 0

test/runtests.jl

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const GROUP = get(ENV, "GROUP", "All")
1010
### Run Tests ###
1111
@time begin
1212

13-
# Tests the `ReactionSystem` structure and its properties.
14-
if GROUP == "All" || GROUP == "ReactionSystem"
13+
if GROUP == "All" || GROUP == "ModelCreation"
14+
# Tests the `ReactionSystem` structure and its properties.
1515
@testset "ReactionSystem" begin
1616
@time @safetestset "Reaction Structure" begin include("reactionsystem_core/reaction_structure.jl") end
1717
@time @safetestset "ReactionSystem Structure" begin include("reactionsystem_core/reactionsystem_structure.jl") end
@@ -22,36 +22,30 @@ const GROUP = get(ENV, "GROUP", "All")
2222
# @time @safetestset "Coupled CRN/Equation Systems" begin include("reactionsystem_core/coupled_equation_crn_systems.jl") end
2323
@time @safetestset "Events" begin include("reactionsystem_core/events.jl") end
2424
end
25-
end
2625

27-
# Tests model creation via the @reaction_network DSL.
28-
if GROUP == "All" || GROUP == "DSL"
26+
# Tests model creation via the @reaction_network DSL.
2927
@testset "DSL" begin
3028
@time @safetestset "DSL Basic Model Construction" begin include("dsl/dsl_basic_model_construction.jl") end
3129
@time @safetestset "DSL Advanced Model Construction" begin include("dsl/dsl_advanced_model_construction.jl") end
3230
@time @safetestset "DSL Options" begin include("dsl/dsl_options.jl") end
3331
end
34-
end
3532

36-
# Tests compositional and hierarchical modelling.
37-
if GROUP == "All" || GROUP == "CompositionalModelling"
33+
# Tests compositional and hierarchical modelling.
3834
@testset "CompositionalModelling" begin
3935
@time @safetestset "ReactionSystem Components Based Creation" begin include("compositional_modelling/component_based_model_creation.jl") end
4036
end
4137
end
4238

43-
# Tests various miscellaneous features.
44-
if GROUP == "All" || GROUP == "Miscellaneous"
39+
if GROUP == "All" || GROUP == "Miscellaneous-NetworkAnalysis"
40+
# Tests various miscellaneous features.
4541
@testset "Miscellaneous" begin
4642
@time @safetestset "API" begin include("miscellaneous_tests/api.jl") end
4743
@time @safetestset "Compound Species" begin include("miscellaneous_tests/compound_macro.jl") end
4844
@time @safetestset "Reaction Balancing" begin include("miscellaneous_tests/reaction_balancing.jl") end
4945
@time @safetestset "Units" begin include("miscellaneous_tests/units.jl") end
5046
end
51-
end
5247

53-
# Tests reaction network analysis features.
54-
if GROUP == "All" || GROUP == "NetworkAnalysis"
48+
# Tests reaction network analysis features.
5549
@testset "NetworkAnalysis" begin
5650
@time @safetestset "Conservation Laws" begin include("network_analysis/conservation_laws.jl") end
5751
@time @safetestset "Network Properties" begin include("network_analysis/network_properties.jl") end
@@ -67,10 +61,8 @@ const GROUP = get(ENV, "GROUP", "All")
6761
@time @safetestset "Jump System Simulations" begin include("simulation_and_solving/simulate_jumps.jl") end
6862
@time @safetestset "Nonlinear and SteadyState System Solving" begin include("simulation_and_solving/solve_nonlinear.jl") end
6963
end
70-
end
7164

72-
# Tests upstream SciML and DiffEq stuff.
73-
if GROUP == "All" || GROUP == "Upstream"
65+
# Tests upstream SciML and DiffEq stuff.
7466
@testset "Upstream" begin
7567
@time @safetestset "MTK Structure Indexing" begin include("upstream/mtk_structure_indexing.jl") end
7668
@time @safetestset "MTK Problem Inputs" begin include("upstream/mtk_problem_inputs.jl") end
@@ -86,19 +78,17 @@ const GROUP = get(ENV, "GROUP", "All")
8678
end
8779
end
8880

89-
# Tests network visualisation.
90-
if GROUP == "All" || GROUP == "Visualisation"
91-
@testset "Visualization" begin
81+
if GROUP == "All" || GROUP == "Visualisation-Extensions"
82+
# Tests network visualisation.
83+
@testset "Visualisation" begin
9284
@time @safetestset "Latexify" begin include("visualisation/latexify.jl") end
9385
# Disable on Macs as can't install GraphViz via jll
9486
if !Sys.isapple()
9587
@time @safetestset "Graphs Visualisations" begin include("visualisation/graphs.jl") end
9688
end
9789
end
98-
end
9990

100-
# Tests extensions.
101-
if GROUP == "All" || GROUP == "Extensions"
91+
# Tests extensions.
10292
@testset "Extensions" begin
10393
# @time @safetestset "BifurcationKit Extension" begin include("extensions/bifurcation_kit.jl") end
10494
# @time @safetestset "HomotopyContinuation Extension" begin include("extensions/homotopy_continuation.jl") end

0 commit comments

Comments
 (0)