diff --git a/.github/workflows/core_tests.yml b/.github/workflows/core_tests.yml index 26bf6a215..f68612d10 100644 --- a/.github/workflows/core_tests.yml +++ b/.github/workflows/core_tests.yml @@ -56,6 +56,7 @@ jobs: - uses: julia-actions/cache@v1 with: cache-compiled: "true" + cache-registries: "true" - uses: julia-actions/julia-buildpkg@v1 with: project: core diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 44693bdf1..7dd281c38 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -37,6 +37,7 @@ jobs: - uses: julia-actions/cache@v1 with: cache-compiled: "true" + cache-registries: "true" - name: Setup Micromamba uses: mamba-org/setup-micromamba@v1 diff --git a/core/test/equations.jl b/core/test/equations.jl index 84a6012ed..4af3fd2cd 100644 --- a/core/test/equations.jl +++ b/core/test/equations.jl @@ -66,6 +66,7 @@ TimerOutputs.disable_debug_timings(Ribasim) # causes recompilation (!) toml_path = normpath(@__DIR__, "../../data/linear_resistance/linear_resistance.toml") @test ispath(toml_path) model = Ribasim.run(toml_path) + @test model.integrator.sol.retcode == Ribasim.ReturnCode.Success p = model.integrator.p t = Ribasim.timesteps(model) @@ -89,6 +90,7 @@ end toml_path = normpath(@__DIR__, "../../data/rating_curve/rating_curve.toml") @test ispath(toml_path) model = Ribasim.run(toml_path) + @test model.integrator.sol.retcode == Ribasim.ReturnCode.Success p = model.integrator.p t = Ribasim.timesteps(model) @@ -120,6 +122,7 @@ end toml_path = normpath(@__DIR__, "../../data/manning_resistance/manning_resistance.toml") @test ispath(toml_path) model = Ribasim.run(toml_path) + @test model.integrator.sol.retcode == Ribasim.ReturnCode.Success p = model.integrator.p (; manning_resistance) = p @@ -154,6 +157,7 @@ end toml_path = normpath(@__DIR__, "../../data/misc_nodes/misc_nodes.toml") @test ispath(toml_path) model = Ribasim.run(toml_path) + @test model.integrator.sol.retcode == Ribasim.ReturnCode.Success p = model.integrator.p (; flow_boundary, fractional_flow, pump) = p diff --git a/core/test/run_models.jl b/core/test/run_models.jl index 7b401c8a6..d56cf1889 100644 --- a/core/test/run_models.jl +++ b/core/test/run_models.jl @@ -158,6 +158,7 @@ end toml_path = normpath(@__DIR__, "../../data/backwater/backwater.toml") @test ispath(toml_path) model = Ribasim.run(toml_path) + @test model.integrator.sol.retcode == Ribasim.ReturnCode.Success u = model.integrator.sol.u[end] p = model.integrator.p diff --git a/python/ribasim_testmodels/ribasim_testmodels/equations.py b/python/ribasim_testmodels/ribasim_testmodels/equations.py index 46b549b44..9288eb1f1 100644 --- a/python/ribasim_testmodels/ribasim_testmodels/equations.py +++ b/python/ribasim_testmodels/ribasim_testmodels/equations.py @@ -432,6 +432,7 @@ def miscellaneous_nodes_model(): # Setup solver: solver = ribasim.Solver( + adaptive=False, dt=24 * 24 * 60, algorithm="Euler", )