Skip to content

Commit 307cae5

Browse files
committed
Fix
1 parent 061f354 commit 307cae5

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/Test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ jobs:
8080
run: julia --color=yes -e '
8181
using Pkg;
8282
Pkg.Registry.update();
83+
if VERSION < v"1.11";
8384
Pkg.activate("./DifferentiationInterface/test");
84-
Pkg.develop([PackageSpec(; path="./DifferentiationInterface"), PackageSpec(; path="./DifferentiationInterfaceTest")]);
85-
VERSION < v"1.11" && Pkg.rm("DifferentiationInterface");
86-
Pkg.activate("./DifferentiationInterface/");
85+
Pkg.rm("DifferentiationInterfaceTest");
86+
end;
8787
test_kwargs = (; allow_reresolve=false, coverage=true);
8888
if ENV["JULIA_DI_PR_DRAFT"] == "true";
8989
Pkg.test("DifferentiationInterface"; julia_args=["-O1"], test_kwargs...);

DifferentiationInterface/test/runtests.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ using DifferentiationInterface
22
using Pkg
33
using Test
44

5+
@static if VERSION < v"1.11"
6+
DIT_PATH = joinpath(@__DIR__, "..", "..", "DifferentiationInterfaceTest")
7+
if isdir(DIT_PATH)
8+
Pkg.develop(; path = DIT_PATH)
9+
else
10+
Pkg.add("DifferentiationInterfaceTest")
11+
end
12+
end
13+
514
include("testutils.jl")
615

716
## Main tests

DifferentiationInterfaceTest/test/weird.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
using Pkg
2-
Pkg.add(["FiniteDiff", "Lux", "LuxTestUtils"])
3-
41
using ADTypes
52
using ComponentArrays: ComponentArrays
63
using DifferentiationInterface
74
using DifferentiationInterfaceTest
85
import DifferentiationInterfaceTest as DIT
6+
using FiniteDiff: FiniteDiff
97
using ForwardDiff: ForwardDiff
108
using ForwardDiff: ForwardDiff
119
using JLArrays: JLArrays

0 commit comments

Comments
 (0)