Skip to content

Commit 01b1259

Browse files
authored
Support Julia 1.6 for Turing and others (#52)
1 parent 04203ab commit 01b1259

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
version:
21-
- '1.10'
21+
- '1.6'
2222
- '1'
2323
os:
2424
- ubuntu-latest
@@ -31,7 +31,7 @@ jobs:
3131
version: ${{ matrix.version }}
3232
arch: ${{ matrix.arch }}
3333
- uses: julia-actions/julia-downgrade-compat@v1
34-
if: ${{ matrix.version == '1.10' }}
34+
if: ${{ matrix.version == '1.6' }}
3535
with:
3636
skip: Pkg, TOML
3737
- uses: julia-actions/cache@v1

Project.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ uuid = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
33
authors = [
44
"Vaibhav Dixit <[email protected]>, Guillaume Dalle and contributors",
55
]
6-
version = "1.0.0"
6+
version = "1.1.0"
7+
8+
[deps]
9+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
10+
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
711

812
[weakdeps]
913
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
@@ -16,7 +20,7 @@ ADTypesEnzymeCoreExt = "EnzymeCore"
1620
[compat]
1721
ChainRulesCore = "1.0.2"
1822
EnzymeCore = "0.5.3,0.6,0.7"
19-
julia = "1.10"
23+
julia = "1.6"
2024

2125
[extras]
2226
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

src/ADTypes.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ include("dense.jl")
2121
include("sparse.jl")
2222
include("legacy.jl")
2323

24+
if !isdefined(Base, :get_extension)
25+
include("../ext/ADTypesChainRulesCoreExt.jl")
26+
include("../ext/ADTypesEnzymeCoreExt.jl")
27+
end
28+
2429
export AbstractADType
2530

2631
export AutoChainRules,

test/runtests.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ end
5252
## Tests
5353

5454
@testset verbose=true "ADTypes.jl" begin
55-
@testset "Aqua.jl" begin
56-
Aqua.test_all(ADTypes; deps_compat = (check_extras = false,))
57-
end
58-
@testset "JET.jl" begin
59-
JET.test_package(ADTypes, target_defined_modules = true)
55+
if VERSION >= v"1.10"
56+
@testset "Aqua.jl" begin
57+
Aqua.test_all(ADTypes; deps_compat = (check_extras = false,))
58+
end
59+
@testset "JET.jl" begin
60+
JET.test_package(ADTypes, target_defined_modules = true)
61+
end
6062
end
6163
@testset "Dense" begin
6264
include("dense.jl")

0 commit comments

Comments
 (0)