Skip to content

Commit

Permalink
Support Julia 1.6 for Turing and others (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed May 2, 2024
1 parent 04203ab commit 01b1259
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.10'
- '1.6'
- '1'
os:
- ubuntu-latest
Expand All @@ -31,7 +31,7 @@ jobs:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-downgrade-compat@v1
if: ${{ matrix.version == '1.10' }}
if: ${{ matrix.version == '1.6' }}
with:
skip: Pkg, TOML
- uses: julia-actions/cache@v1
Expand Down
8 changes: 6 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ uuid = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
authors = [
"Vaibhav Dixit <vaibhavyashdixit@gmail.com>, Guillaume Dalle and contributors",
]
version = "1.0.0"
version = "1.1.0"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"

[weakdeps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand All @@ -16,7 +20,7 @@ ADTypesEnzymeCoreExt = "EnzymeCore"
[compat]
ChainRulesCore = "1.0.2"
EnzymeCore = "0.5.3,0.6,0.7"
julia = "1.10"
julia = "1.6"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
5 changes: 5 additions & 0 deletions src/ADTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ include("dense.jl")
include("sparse.jl")
include("legacy.jl")

if !isdefined(Base, :get_extension)
include("../ext/ADTypesChainRulesCoreExt.jl")
include("../ext/ADTypesEnzymeCoreExt.jl")
end

export AbstractADType

export AutoChainRules,
Expand Down
12 changes: 7 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ end
## Tests

@testset verbose=true "ADTypes.jl" begin
@testset "Aqua.jl" begin
Aqua.test_all(ADTypes; deps_compat = (check_extras = false,))
end
@testset "JET.jl" begin
JET.test_package(ADTypes, target_defined_modules = true)
if VERSION >= v"1.10"
@testset "Aqua.jl" begin
Aqua.test_all(ADTypes; deps_compat = (check_extras = false,))
end
@testset "JET.jl" begin
JET.test_package(ADTypes, target_defined_modules = true)
end
end
@testset "Dense" begin
include("dense.jl")
Expand Down

0 comments on commit 01b1259

Please sign in to comment.