Skip to content

Commit c6dc48d

Browse files
committed
do not run BlossomV tests on Windows (not supported)
1 parent 23e05ae commit c6dc48d

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[deps]
2-
BlossomV = "6c721016-9dae-5d90-abf6-67daaccb2332"
32
Cbc = "9961bab8-2fa3-5c5a-9d89-47fab24efd76"
43
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
54
Hungarian = "e91730f6-4275-51fb-a7a0-7064cfbd3b39"
65
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
76
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
87
LEMONGraphs = "14b1564f-c77f-4800-9e89-efd961faef7c"
98
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
9+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1010
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1111
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

test/runtests.jl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ using Cbc
55
using JuMP
66
using LinearAlgebra: I
77

8-
import BlossomV # to test the extension
8+
if !Sys.iswindows()
9+
using Pkg
10+
Pkg.add("BlossomV")
11+
import BlossomV # to test the extension
12+
end
913

1014
@testset "GraphsMatching" begin
1115

@@ -261,10 +265,11 @@ import BlossomV # to test the extension
261265

262266

263267
@testset "minimum_weight_perfect_matching" begin
264-
for algorithm in [
265-
BlossomVAlgorithm(),
266-
LEMONMWPMAlgorithm(),
267-
]
268+
algos = Any[LEMONMWPMAlgorithm()]
269+
if !Sys.iswindows()
270+
push!(algos, BlossomVAlgorithm())
271+
end
272+
for algorithm in algos
268273

269274
w = Dict(Edge(1, 2) => 500)
270275
g = Graph(2)

0 commit comments

Comments
 (0)