Skip to content

Commit 2732f66

Browse files
committed
simplify CI detection
1 parent 06d3784 commit 2732f66

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/runtests.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,9 @@ include("tensors.jl")
6161
include("diagonal.jl")
6262
include("planar.jl")
6363
# TODO: remove once we know AD is slow on macOS CI
64-
test_ad = try
65-
!(Sys.isapple() && ENV["CI"] == "true")
66-
catch
67-
true
64+
if !(Sys.isapple() && get(ENV, "CI", "false") == "true")
65+
include("ad.jl")
6866
end
69-
test_ad && include("ad.jl")
7067
include("bugfixes.jl")
7168
Tf = time()
7269
printstyled("Finished all tests in ",

0 commit comments

Comments
 (0)