Skip to content

Commit eec8c92

Browse files
committed
Fix 1.10
1 parent d40faaa commit eec8c92

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/Test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ jobs:
5959
run: julia --color=yes -e '
6060
using Pkg;
6161
Pkg.activate("./DifferentiationInterface/test");
62+
if VERSION < v"1.11";
63+
Pkg.rm("DifferentiationInterfaceTest");
64+
Pkg.develop([PackageSpec(path="./DifferentiationInterface")]);
65+
else;
6266
Pkg.develop([PackageSpec(path="./DifferentiationInterface"), PackageSpec(path="./DifferentiationInterfaceTest")]);
67+
end;
6368
Pkg.activate("./DifferentiationInterface");
6469
test_kwargs = (; allow_reresolve=false, coverage=true);
6570
if ENV["JULIA_DI_PR_DRAFT"] == "true";

DifferentiationInterface/test/testutils.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
using Pkg
22

3+
@static if VERSION < v"1.11"
4+
DIT_PATH = joinpath(@__DIR__, "..", "..", "DifferentiationInterfaceTest")
5+
if isdir(DIT_PATH)
6+
Pkg.develop(; path = DIT_PATH)
7+
else
8+
Pkg.add("DifferentiationInterfaceTest")
9+
end
10+
end
11+
312
using ADTypes
413
using DifferentiationInterfaceTest
514
using SparseConnectivityTracer

0 commit comments

Comments
 (0)