Skip to content

Commit

Permalink
fix: update min compats and introduce downgrade testing
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Nov 13, 2024
1 parent 9da0c54 commit 62be3d2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 38 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/downgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Downgrade
on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['1.10']
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
- uses: cjdoris/julia-downgrade-compat-action@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
45 changes: 14 additions & 31 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930"
StaticArrayInterface = "0d7ed370-da01-4f52-bd93-41d350b8b718"
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"

Expand All @@ -22,7 +21,6 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
TruncatedStacktraces = "781d530d-4396-4725-bb49-402e4bee1e77"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[extensions]
Expand All @@ -34,39 +32,24 @@ ComponentArraysRecursiveArrayToolsExt = "RecursiveArrayTools"
ComponentArraysReverseDiffExt = "ReverseDiff"
ComponentArraysSciMLBaseExt = "SciMLBase"
ComponentArraysTrackerExt = "Tracker"
ComponentArraysTruncatedStacktracesExt = "TruncatedStacktraces"
ComponentArraysZygoteExt = "Zygote"

[compat]
Adapt = "3, 4"
ArrayInterface = "6, 7"
ChainRulesCore = "0.8, 0.9, 0.10, 1"
Adapt = "4.1"
ArrayInterface = "7.10"
ChainRulesCore = "1.24"
ConstructionBase = "1"
ForwardDiff = "0.10"
Functors = "0.4.4"
GPUArrays = "8, 9, 10"
LinearAlgebra = "1"
Optimisers = "0.3"
PackageExtensionCompat = "1"
RecursiveArrayTools = "2, 3"
ReverseDiff = "1"
SciMLBase = "1, 2"
ForwardDiff = "0.10.36"
Functors = "0.4.12, 0.5"
GPUArrays = "10, 11"
LinearAlgebra = "1.10"
Optimisers = "0.3, 0.4"
RecursiveArrayTools = "3.8"
ReverseDiff = "1.15"
SciMLBase = "2"
StaticArrayInterface = "1"
StaticArraysCore = "1"
StaticArraysCore = "1.4"
Test = "1.10"
Tracker = "0.2"
Zygote = "0.6"
Tracker = "0.2.34"
Zygote = "0.6.70"
julia = "1.10"

[extras]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
GPUArrays = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
5 changes: 0 additions & 5 deletions src/ComponentArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,4 @@ export @static_unpack

include("compat/functors.jl")

import PackageExtensionCompat: @require_extensions
function __init__()
@require_extensions
end

end
1 change: 0 additions & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
TruncatedStacktraces = "781d530d-4396-4725-bb49-402e4bee1e77"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ using OffsetArrays
using Test
using Unitful
using Functors
import TruncatedStacktraces # This is loaded just to trigger the extension package


## Test setup
Expand Down

0 comments on commit 62be3d2

Please sign in to comment.