Skip to content

Commit

Permalink
Merge pull request #1098 from isaacsas/update_tests
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
isaacsas authored Oct 29, 2024
2 parents 1b34c61 + dc06227 commit 0b4092e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- "pre"
group:
- Core
- IO
- Spatial
- Extensions
uses: "SciML/.github/.github/workflows/tests.yml@v1"
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Parameters = "0.12"
Reexport = "0.2, 1.0"
Requires = "1.0"
RuntimeGeneratedFunctions = "0.5.12"
SciMLBase = "2.46"
SciMLBase = "< 2.57.2"
Setfield = "1"
# StructuralIdentifiability = "0.5.8"
SymbolicUtils = "2.1.2, 3.3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ end
# Adding algebraic constraints.
let
@parameters t, r₊, r₋, β
@species A(t), B(t), C(t), D(t)
@species A(t), B(t), C(t)
@variables D(t)
rxs1 = [Reaction(r₊, [A, B], [C])]
rxs2 = [Reaction(r₋, [C], [A, B])]
@named rs1 = ReactionSystem(rxs1, t, [A, B, C], [r₊])
Expand Down
7 changes: 5 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ end
@time @safetestset "Units" begin include("miscellaneous_tests/units.jl") end
@time @safetestset "Compound Species" begin include("miscellaneous_tests/compound_macro.jl") end
@time @safetestset "Reaction Balancing" begin include("miscellaneous_tests/reaction_balancing.jl") end
@time @safetestset "ReactionSystem Serialisation" begin include("miscellaneous_tests/reactionsystem_serialisation.jl") end

# Tests reaction network analysis features.
@time @safetestset "Conservation Laws" begin include("network_analysis/conservation_laws.jl") end
Expand All @@ -54,9 +53,13 @@ end
# Tests upstream SciML and DiffEq stuff.
@time @safetestset "MTK Structure Indexing" begin include("upstream/mtk_structure_indexing.jl") end
@time @safetestset "MTK Problem Inputs" begin include("upstream/mtk_problem_inputs.jl") end
end

# Tests network visualisation.
if GROUP == "All" || GROUP == "IO"
# @time @safetestset "ReactionSystem Serialisation" begin include("miscellaneous_tests/reactionsystem_serialisation.jl") end
# @time @safetestset "Latexify" begin include("visualisation/latexify.jl") end

# Tests network visualisation.
# Disable on Macs as can't install GraphViz via jll
if !Sys.isapple()
@time @safetestset "Graphs Visualisations" begin include("visualisation/graphs.jl") end
Expand Down

0 comments on commit 0b4092e

Please sign in to comment.