Skip to content

Commit

Permalink
Merge pull request #650 from ArnoStrouwen/downgrade
Browse files Browse the repository at this point in the history
downgrade CI
  • Loading branch information
ChrisRackauckas authored Dec 26, 2023
2 parents 222a515 + bd624b4 commit 9eacb81
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 70 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Downgrade
on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['1']
group:
- Core
- OptimizationBBO
- OptimizationCMAEvolutionStrategy
- OptimizationEvolutionary
- OptimizationFlux
- OptimizationGCMAES
- OptimizationMetaheuristics
- OptimizationMOI
- OptimizationMultistartOptimization
- OptimizationNLopt
#- OptimizationNonconvex
- OptimizationNOMAD
- OptimizationOptimJL
- OptimizationOptimisers
- OptimizationPRIMA
- OptimizationQuadDIRECT
- OptimizationSpeedMapping
- OptimizationPolyalgorithms
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
- uses: cjdoris/julia-downgrade-compat-action@v1
# if: ${{ matrix.version == '1.6' }}
with:
skip: Pkg,TOML
- uses: julia-actions/julia-buildpkg@v1
- if: ${{ matrix.group == 'OptimizationQuadDIRECT' }}
run: julia --project -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url = "https://github.com/HolyLab/HolyLabRegistry.git")); Pkg.add("QuadDIRECT")'
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
42 changes: 20 additions & 22 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
ProgressLogging = "33c8b6b6-d38a-422a-b730-caa89a2f386c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
Expand Down Expand Up @@ -42,31 +41,30 @@ OptimizationTrackerExt = "Tracker"
OptimizationZygoteExt = "Zygote"

[compat]
ADTypes = "0.1.5, 0.2"
ArrayInterface = "6, 7"
ConsoleProgressMonitor = "0.1"
DocStringExtensions = "0.8, 0.9"
Enzyme = "0.11.2"
FiniteDiff = "2"
ForwardDiff = "0.10"
LinearAlgebra = "1"
Logging = "1"
LoggingExtras = "0.4, 0.5, 1"
ModelingToolkit = "8"
ADTypes = "0.2.5"
ArrayInterface = "7.6"
ConsoleProgressMonitor = "0.1.1"
DocStringExtensions = "0.9"
Enzyme = "0.11.9"
FiniteDiff = "2.12"
ForwardDiff = "0.10.26"
LinearAlgebra = "1.9"
Logging = "1.9"
LoggingExtras = "0.4"
ModelingToolkit = "8.74"
Pkg = "1"
Printf = "1"
Printf = "1.9"
ProgressLogging = "0.1"
Reexport = "0.2, 1.0"
Requires = "1.0"
ReverseDiff = "1"
SciMLBase = "1.79.0, 2"
SparseArrays = "1"
SparseDiffTools = "2"
Reexport = "1.2"
ReverseDiff = "1.14"
SciMLBase = "2.11"
SparseArrays = "1.9"
SparseDiffTools = "2.14"
SymbolicIndexingInterface = "0.3"
Symbolics = "5"
Symbolics = "5.12"
TerminalLoggers = "0.1"
Tracker = "0.2"
Zygote = "0.6"
Tracker = "0.2.29"
Zygote = "0.6.67"
julia = "1.9"

[extras]
Expand Down
39 changes: 0 additions & 39 deletions src/Optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,45 +25,6 @@ include("function.jl")
include("adtypes.jl")
include("cache.jl")

@static if !isdefined(Base, :get_extension)
function __init__()
# AD backends
@require FiniteDiff="6a86dc24-6348-571c-b903-95158fe2bd41" begin
include("../ext/OptimizationFiniteDiffExt.jl")
using .OptimizationFiniteDiffExt
end
@require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" begin
include("../ext/OptimizationForwardDiffExt.jl")
using .OptimizationForwardDiffExt
end
@require ReverseDiff="37e2e3b7-166d-5795-8a7a-e32c996b4267" begin
include("../ext/OptimizationReverseDiffExt.jl")
using .OptimizationReverseDiffExt
end
@require Tracker="9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c" begin
include("../ext/OptimizationTrackerExt.jl")
using .OptimizationTrackerExt
end
@require Zygote="e88e6eb3-aa80-5325-afca-941959d7151f" begin
include("../ext/OptimizationZygoteExt.jl")
using .OptimizationZygoteExt
end
@require ModelingToolkit="961ee093-0014-501f-94e3-6117800e7a78" begin
include("../ext/OptimizationMTKExt.jl")
using .OptimizationMTKExt
end
@require Enzyme="7da242da-08ed-463a-9acd-ee780be4f1d9" begin
include("../ext/OptimizationEnzymeExt.jl")
using .OptimizationEnzymeExt
end
@require SparseDiffTools="47a9eef4-7e08-11e9-0b38-333d64bd3804" begin
@require Symbolics="0c5d862f-8b57-4792-8d23-62f2024744c7" begin
include("../ext/OptimizationSparseDiffExt.jl")
using .OptimizationSparseDiffExt
end
end
end
end

export solve, OptimizationCache

Expand Down
10 changes: 1 addition & 9 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,11 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
Aqua = "0.8"
ComponentArrays = ">= 0.13.9"
DiffEqFlux = ">= 2"
Enzyme = ">= 0.11.0"
FiniteDiff = ">= 2.8.1"
Flux = "0.13, 0.14"
ForwardDiff = ">= 0.10.19"
IterTools = ">= 1.3.0"
Lux = ">= 0.4.50"
ModelingToolkit = ">= 8.11.0"
Optim = ">= 1.4.1"
Optimisers = ">= 0.2.5"
OrdinaryDiffEq = ">= 5"
ReverseDiff = ">= 1.9.0"
SafeTestsets = ">= 0.0.1"
SciMLSensitivity = ">= 7.0.0"
Tracker = ">= 0.2"
Zygote = ">= 0.5"
julia = "1.5"
SciMLSensitivity = ">= 7.0.0"

0 comments on commit 9eacb81

Please sign in to comment.