Skip to content

Commit 189debf

Browse files
test: temporarily remove Optimization from test deps
1 parent 23b22f2 commit 189debf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ PreallocationTools = "d236fae5-4411-538c-8e31-a6e3d9e00b46"
1313
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
1414

1515
[compat]
16+
ADTypes = "1"
1617
Aqua = "0.8"
1718
ChainRulesCore = "1.24"
1819
ControlSystemsBase = "1.4"
@@ -22,7 +23,6 @@ ForwardDiff = "0.10"
2223
DiffEqBase = "6.152"
2324
IfElse = "0.1"
2425
LinearAlgebra = "1.10"
25-
Optimization = "4"
2626
ModelingToolkit = "9.47, 10"
2727
OrdinaryDiffEq = "6.87"
2828
OrdinaryDiffEqDefault = "1.1"
@@ -35,13 +35,13 @@ Test = "1"
3535
julia = "1.10"
3636

3737
[extras]
38+
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
3839
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3940
ControlSystemsBase = "aaaaaaaa-a6ca-5380-bf3e-84a91bcd477e"
4041
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
4142
DataInterpolations = "82cc6244-b520-54b8-b5a6-8a565e85f1d0"
4243
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
4344
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
44-
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
4545
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
4646
OrdinaryDiffEqDefault = "50262376-6c5a-4cf5-baba-aaf4f84d72d7"
4747
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
@@ -50,4 +50,4 @@ SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
5050
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5151

5252
[targets]
53-
test = ["Aqua", "LinearAlgebra", "OrdinaryDiffEqDefault", "OrdinaryDiffEq", "Optimization", "SafeTestsets", "Test", "ControlSystemsBase", "DataFrames", "DataInterpolations", "SciMLStructures", "SymbolicIndexingInterface", "ForwardDiff"]
53+
test = ["ADTypes", "Aqua", "LinearAlgebra", "OrdinaryDiffEqDefault", "OrdinaryDiffEq", "SafeTestsets", "Test", "ControlSystemsBase", "DataFrames", "DataInterpolations", "SciMLStructures", "SymbolicIndexingInterface", "ForwardDiff"]

test/Blocks/sources.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ using DataInterpolations
99
using DataFrames
1010
using SymbolicIndexingInterface
1111
using SciMLStructures: SciMLStructures, Tunable
12-
using Optimization
1312
using ForwardDiff
13+
using ADTypes
1414

1515
@testset "Constant" begin
1616
@named src = Constant(k = 2)
@@ -588,8 +588,10 @@ end
588588
# check that type changing works
589589
@test length(ForwardDiff.gradient(x -> of(x, (prob, set_data!)), u)) == 15
590590

591-
r = solve(op, Optimization.LBFGS(), maxiters = 1000)
592-
@test of(r.u, (prob, set_data!)) < of(u, (prob, set_data!))
591+
@test_skip begin
592+
r = solve(op, Optimization.LBFGS(), maxiters = 1000)
593+
@test of(r.u, (prob, set_data!)) < of(u, (prob, set_data!))
594+
end
593595
end
594596

595597
@testset "BSplineInterpolation" begin

0 commit comments

Comments
 (0)