Skip to content

Commit addf691

Browse files
committed
reduce CI test weight; distribute spacetypes over different platforms
1 parent af3d542 commit addf691

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

test/tensors.jl

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,24 @@ for V in (Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VU₁, VfU₁, VCU₁, VSU₂, VfSU
5555
@assert V3 * V4 V1' * V2' * V5' # necessary for rightorth tests
5656
end
5757

58-
for V in (Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VU₁, VfU₁, VCU₁, VSU₂, VfSU₂, VSU₃)
58+
spacelist = try
59+
if ENV["CI"] == true
60+
println("Detected running on CI")
61+
if Sys.iswindows()
62+
(Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VU₁, VfU₁, VCU₁, VSU₂)
63+
elseif Sys.isapple()
64+
(Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VfU₁, VfSU₂, VSU₃)
65+
else
66+
(Vtr, Vℤ₂, Vfℤ₂, VU₁, VCU₁, VSU₂, VfSU₂, VSU₃)
67+
end
68+
else
69+
(Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VU₁, VfU₁, VCU₁, VSU₂, VfSU₂, VSU₃)
70+
end
71+
catch
72+
(Vtr, Vℤ₂, Vfℤ₂, Vℤ₃, VU₁, VfU₁, VCU₁, VSU₂, VfSU₂, VSU₃)
73+
end
74+
75+
for V in spacelist
5976
I = sectortype(first(V))
6077
Istr = TensorKit.type_repr(I)
6178
println("---------------------------------------")

0 commit comments

Comments
 (0)