Skip to content

Commit af0b6ce

Browse files
authored
Test on 1.11 (#302)
* Test on 1.11 * More tests on 1.11 * Fix public * Split out ChainRulesCore * Typo * Fix exclude
1 parent fa2763c commit af0b6ce

File tree

4 files changed

+33
-9
lines changed

4 files changed

+33
-9
lines changed

.github/workflows/Test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
version:
3030
- '1'
3131
- '1.6'
32+
- '~1.11.0-0'
3233
group:
3334
- Formalities
3435
- Internals
@@ -44,16 +45,21 @@ jobs:
4445
- Single/Tapir
4546
- Single/Tracker
4647
- Single/Zygote
48+
- Double/ChainRulesCore-Zygote
4749
- Double/Enzyme-ForwardDiff
4850
- Double/ForwardDiff-Zygote
4951
- Double/ReverseDiff-Zygote
5052
exclude:
5153
- version: '1.6'
5254
group: Formalities
55+
- version: '~1.11.0-0'
56+
group: Formalities
5357
- version: '1.6'
5458
group: Single/Diffractor
5559
- version: '1.6'
5660
group: Single/Enzyme
61+
- version: '~1.11.0-0'
62+
group: Single/Enzyme
5763
- version: '1.6'
5864
group: Single/FiniteDiff
5965
- version: '1.6'
@@ -64,8 +70,14 @@ jobs:
6470
group: Single/Symbolics
6571
- version: '1.6'
6672
group: Single/Tapir
73+
- version: '~1.11.0-0'
74+
group: Single/Tapir
75+
- version: '~1.11.0-0'
76+
group: Double/ChainRulesCore-Zygote
6777
- version: '1.6'
6878
group: Double/Enzyme-ForwardDiff
79+
- version: '~1.11.0-0'
80+
group: Double/Enzyme-ForwardDiff
6981
- version: '1.6'
7082
group: Double/ReverseDiff-Zygote
7183

@@ -106,6 +118,7 @@ jobs:
106118
version:
107119
- '1'
108120
- '1.6'
121+
- '~1.11.0-0'
109122
group:
110123
- Formalities
111124
- Zero

DifferentiationInterface/src/DifferentiationInterface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export GreedyColoringAlgorithm
135135

136136
## Public but not exported
137137

138-
@compat public inner, outer
138+
@compat public inner
139+
@compat public outer
139140

140141
end # module
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using ChainRulesCore
2+
using DifferentiationInterface, DifferentiationInterfaceTest
3+
using Test
4+
using Zygote: ZygoteRuleConfig
5+
6+
for backend in [AutoChainRules(ZygoteRuleConfig())]
7+
@test check_available(backend)
8+
@test !check_twoarg(backend)
9+
@test check_hessian(backend)
10+
end
11+
12+
test_differentiation(
13+
AutoChainRules(ZygoteRuleConfig());
14+
excluded=[SecondDerivativeScenario],
15+
second_order=VERSION >= v"1.10",
16+
logging=LOGGING,
17+
);

DifferentiationInterface/test/Single/Zygote/test.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using SparseConnectivityTracer, SparseMatrixColorings
33
using Test
44
using Zygote: Zygote
55

6-
dense_backends = [AutoChainRules(Zygote.ZygoteRuleConfig()), AutoZygote()]
6+
dense_backends = [AutoZygote()]
77

88
sparse_backends = [
99
AutoSparse(
@@ -21,13 +21,6 @@ end
2121

2222
## Dense backends
2323

24-
test_differentiation(
25-
AutoChainRules(Zygote.ZygoteRuleConfig());
26-
excluded=[SecondDerivativeScenario],
27-
second_order=VERSION >= v"1.10",
28-
logging=LOGGING,
29-
);
30-
3124
test_differentiation(AutoZygote(); excluded=[SecondDerivativeScenario], logging=LOGGING);
3225

3326
test_differentiation(

0 commit comments

Comments
 (0)