Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ jobs:
- Back/Symbolics
- Back/Tracker
- Back/Zygote
- Down/Flux
- Down/Lux
skip_lts:
- ${{ github.event.pull_request.draft }}
skip_pre:
Expand All @@ -79,14 +77,22 @@ jobs:
arch: x64
- uses: julia-actions/cache@v2
- name: Install dependencies & run tests
# how to add the local DIT to the DI test env?
run: julia --project=./DifferentiationInterface --color=yes -e '
run: julia --color=yes -e '
using Pkg;
Pkg.Registry.update();
Pkg.activate("./DifferentiationInterface/test");
if VERSION < v"1.11";
Pkg.rm("DifferentiationInterfaceTest");
Pkg.resolve();
else;
Pkg.develop(; path="./DifferentiationInterfaceTest");
end;
Pkg.activate("./DifferentiationInterface");
test_kwargs = (; allow_reresolve=false, coverage=true);
if ENV["JULIA_DI_PR_DRAFT"] == "true";
Pkg.test("DifferentiationInterface"; coverage=true, julia_args=["-O1"]);
Pkg.test("DifferentiationInterface"; julia_args=["-O1"], test_kwargs...);
else;
Pkg.test("DifferentiationInterface"; coverage=true);
Pkg.test("DifferentiationInterface"; test_kwargs...);
end;'
- uses: julia-actions/julia-processcoverage@v1
with:
Expand Down
26 changes: 0 additions & 26 deletions DifferentiationInterface/test/Down/Flux/test.jl

This file was deleted.

22 changes: 0 additions & 22 deletions DifferentiationInterface/test/Down/Lux/test.jl

This file was deleted.

4 changes: 3 additions & 1 deletion DifferentiationInterface/test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
DifferentiationInterfaceTest = "a82114a7-5aa3-49a8-9643-716bb13727a3"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
Expand All @@ -26,6 +27,7 @@ ComponentArrays = "0.15.27"
DataFrames = "1.7.0"
Dates = "1"
DifferentiationInterface = "0.7.10"
DifferentiationInterfaceTest = "0.10.3"
ExplicitImports = "1.10.1"
InteractiveUtils = "1"
JET = "0.9,0.10,0.11"
Expand All @@ -40,4 +42,4 @@ Test = "1"
julia = "1.10.10"

[sources]
DifferentiationInterface = { path = ".." }
DifferentiationInterface = { path = ".." }
12 changes: 7 additions & 5 deletions DifferentiationInterface/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ using DifferentiationInterface
using Pkg
using Test

DIT_PATH = joinpath(@__DIR__, "..", "..", "DifferentiationInterfaceTest")
if isdir(DIT_PATH)
Pkg.develop(; path = DIT_PATH)
else
Pkg.add("DifferentiationInterfaceTest")
@static if VERSION < v"1.11"
DIT_PATH = joinpath(@__DIR__, "..", "..", "DifferentiationInterfaceTest")
if isdir(DIT_PATH)
Pkg.develop(; path = DIT_PATH)
else
Pkg.add("DifferentiationInterfaceTest")
end
end

include("testutils.jl")
Expand Down
17 changes: 0 additions & 17 deletions DifferentiationInterfaceTest/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,14 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[weakdeps]
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
LuxTestUtils = "ac9de150-d08f-4546-94fb-7472b5760531"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[extensions]
DifferentiationInterfaceTestComponentArraysExt = "ComponentArrays"
DifferentiationInterfaceTestFluxExt = ["FiniteDifferences", "Flux", "Functors"]
DifferentiationInterfaceTestJLArraysExt = "JLArrays"
DifferentiationInterfaceTestLuxExt = [
"ComponentArrays",
"ForwardDiff",
"Lux",
"LuxTestUtils",
]
DifferentiationInterfaceTestStaticArraysExt = "StaticArrays"

[compat]
Expand All @@ -51,15 +39,10 @@ ComponentArrays = "0.15"
DataFrames = "1.6.1"
DifferentiationInterface = "0.7.7"
DocStringExtensions = "0.8,0.9"
FiniteDifferences = "0.12"
Flux = "0.16"
ForwardDiff = "0.10.36,1"
Functors = "0.4, 0.5"
JET = "0.9,0.10,0.11"
JLArrays = "0.1,0.2,0.3"
LinearAlgebra = "1"
Lux = "1.1.0"
LuxTestUtils = "1.3.1, 2"
PrecompileTools = "1.2.1"
ProgressMeter = "1"
Random = "1"
Expand Down

This file was deleted.

Loading
Loading