Skip to content

Commit c0468b6

Browse files
committed
test that downstream packages aren't added
1 parent 59ae7b8 commit c0468b6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
9090
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
9191

9292
[targets]
93-
test = ["SafeTestsets", "Aqua", "FastBroadcast", "SparseArrays", "ForwardDiff", "NLsolve", "Pkg", "Test", "Unitful", "Random", "SciMLBase", "StaticArrays", "StructArrays", "Zygote", "Measurements"]
93+
test = ["Aqua", "FastBroadcast", "ForwardDiff", "Measurements", "NLsolve", "Pkg", "Random", "SafeTestsets", "SciMLBase", "SparseArrays", "StaticArrays", "StructArrays", "Test", "Unitful", "Zygote"]

test/qa.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
using RecursiveArrayTools, Aqua
1+
using RecursiveArrayTools, Aqua, Pkg
2+
3+
# yes this is horrible, we'll fix it when Pkg or Base provides a decent API
4+
manifest = Pkg.Types.EnvCache().manifest
5+
# these are good sentinels to test whether someone has added a heavy SciML package to the test deps
6+
if haskey(manifest.deps, "NonlinearSolveBase") || haskey(manifest.deps, "DiffEqBase")
7+
error("Don't put Downstream Packages in non Downstream CI")
8+
end
9+
210
@testset "Aqua" begin
311
Aqua.find_persistent_tasks_deps(RecursiveArrayTools)
412
Aqua.test_ambiguities(RecursiveArrayTools; recursive = false, broken = true)

0 commit comments

Comments
 (0)