Skip to content

Commit 6b6ca3f

Browse files
authored
test: remove neural network tests, clean up envs (#914)
1 parent 9edc437 commit 6b6ca3f

File tree

9 files changed

+23
-538
lines changed

9 files changed

+23
-538
lines changed

.github/workflows/Test.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ jobs:
5151
- Back/Symbolics
5252
- Back/Tracker
5353
- Back/Zygote
54-
- Down/Flux
55-
- Down/Lux
5654
skip_lts:
5755
- ${{ github.event.pull_request.draft }}
5856
skip_pre:
@@ -79,14 +77,22 @@ jobs:
7977
arch: x64
8078
- uses: julia-actions/cache@v2
8179
- name: Install dependencies & run tests
82-
# how to add the local DIT to the DI test env?
83-
run: julia --project=./DifferentiationInterface --color=yes -e '
80+
run: julia --color=yes -e '
8481
using Pkg;
8582
Pkg.Registry.update();
83+
Pkg.activate("./DifferentiationInterface/test");
84+
if VERSION < v"1.11";
85+
Pkg.rm("DifferentiationInterfaceTest");
86+
Pkg.resolve();
87+
else;
88+
Pkg.develop(; path="./DifferentiationInterfaceTest");
89+
end;
90+
Pkg.activate("./DifferentiationInterface");
91+
test_kwargs = (; allow_reresolve=false, coverage=true);
8692
if ENV["JULIA_DI_PR_DRAFT"] == "true";
87-
Pkg.test("DifferentiationInterface"; coverage=true, julia_args=["-O1"]);
93+
Pkg.test("DifferentiationInterface"; julia_args=["-O1"], test_kwargs...);
8894
else;
89-
Pkg.test("DifferentiationInterface"; coverage=true);
95+
Pkg.test("DifferentiationInterface"; test_kwargs...);
9096
end;'
9197
- uses: julia-actions/julia-processcoverage@v1
9298
with:

DifferentiationInterface/test/Down/Flux/test.jl

Lines changed: 0 additions & 26 deletions
This file was deleted.

DifferentiationInterface/test/Down/Lux/test.jl

Lines changed: 0 additions & 22 deletions
This file was deleted.

DifferentiationInterface/test/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
55
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
66
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
77
DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
8+
DifferentiationInterfaceTest = "a82114a7-5aa3-49a8-9643-716bb13727a3"
89
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
910
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
1011
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
@@ -26,6 +27,7 @@ ComponentArrays = "0.15.27"
2627
DataFrames = "1.7.0"
2728
Dates = "1"
2829
DifferentiationInterface = "0.7.10"
30+
DifferentiationInterfaceTest = "0.10.3"
2931
ExplicitImports = "1.10.1"
3032
InteractiveUtils = "1"
3133
JET = "0.9,0.10,0.11"
@@ -40,4 +42,4 @@ Test = "1"
4042
julia = "1.10.10"
4143

4244
[sources]
43-
DifferentiationInterface = { path = ".." }
45+
DifferentiationInterface = { path = ".." }

DifferentiationInterface/test/runtests.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ using DifferentiationInterface
22
using Pkg
33
using Test
44

5-
DIT_PATH = joinpath(@__DIR__, "..", "..", "DifferentiationInterfaceTest")
6-
if isdir(DIT_PATH)
7-
Pkg.develop(; path = DIT_PATH)
8-
else
9-
Pkg.add("DifferentiationInterfaceTest")
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
1012
end
1113

1214
include("testutils.jl")

DifferentiationInterfaceTest/Project.toml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,14 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2121

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

3429
[extensions]
3530
DifferentiationInterfaceTestComponentArraysExt = "ComponentArrays"
36-
DifferentiationInterfaceTestFluxExt = ["FiniteDifferences", "Flux", "Functors"]
3731
DifferentiationInterfaceTestJLArraysExt = "JLArrays"
38-
DifferentiationInterfaceTestLuxExt = [
39-
"ComponentArrays",
40-
"ForwardDiff",
41-
"Lux",
42-
"LuxTestUtils",
43-
]
4432
DifferentiationInterfaceTestStaticArraysExt = "StaticArrays"
4533

4634
[compat]
@@ -51,15 +39,10 @@ ComponentArrays = "0.15"
5139
DataFrames = "1.6.1"
5240
DifferentiationInterface = "0.7.7"
5341
DocStringExtensions = "0.8,0.9"
54-
FiniteDifferences = "0.12"
55-
Flux = "0.16"
5642
ForwardDiff = "0.10.36,1"
57-
Functors = "0.4, 0.5"
5843
JET = "0.9,0.10,0.11"
5944
JLArrays = "0.1,0.2,0.3"
6045
LinearAlgebra = "1"
61-
Lux = "1.1.0"
62-
LuxTestUtils = "1.3.1, 2"
6346
PrecompileTools = "1.2.1"
6447
ProgressMeter = "1"
6548
Random = "1"

DifferentiationInterfaceTest/ext/DifferentiationInterfaceTestFluxExt/DifferentiationInterfaceTestFluxExt.jl

Lines changed: 0 additions & 214 deletions
This file was deleted.

0 commit comments

Comments
 (0)