Skip to content

Commit 6dbf247

Browse files
authored
raise julia compat to 1.10; remove tests on 1.6 (#34)
* raise julia compat to 1.10; remove tests on 1.6 * Update runtests.jl * Update tests to specify target_modules * Update CI to use version 1.12 * Update version check for aqua.jl and jet.jl * change test rng to Xoshiro * cosmetics * more costmetics in tests
1 parent 4192013 commit 6dbf247

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
version:
2626
- '1.12'
2727
- '1.10'
28-
- '1.6'
2928
- 'pre'
3029
os:
3130
- ubuntu-latest

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ nauty_jll = "55c6dc9b-343a-50ca-8ff2-b71adb3733d5"
1313
Graphs = "1.9"
1414
LinearAlgebra = "1"
1515
SHA = "0.7, 1"
16-
julia = "1.6"
16+
julia = "1.10"
1717
nauty_jll = "2.8.9"

test/densenautygraph.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
rng = Random.Random.MersenneTwister(0) # Use MersenneTwister for Julia 1.6 compat
2-
symmetrize_adjmx(A) = (A = convert(typeof(A), (A + A') .> 0); for i in axes(A, 1); end; A)
3-
41
@testset "densenautygraph" begin
52
nverts = [1, 2, 3, 4, 5, 10, 20, 31, 32, 33, 50, 63, 64,
63
65, 100, 122, 123, 124, 125, 126, 200, 500, 1000]
7-
As = [rand(rng, [0, 1], i, i) for i in nverts]
4+
As = [rand(rng, 0:1, i, i) for i in nverts]
85

96
wtypes = [UInt16, UInt32, UInt64]
107

118
gs = []
129
ngs = []
1310
for A in As, wt in wtypes
14-
Asym = symmetrize_adjmx(A)
11+
Asym = Int.((A + A') .> 0)
1512
push!(gs, Graph(Asym))
1613
push!(gs, DiGraph(A))
1714
push!(ngs, NautyGraph{wt}(Asym))

test/graphset.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
rng = Random.Random.MersenneTwister(0) # Use MersenneTwister for Julia 1.6 compat
2-
31
function test_graphsets(A; mfacts)
42
n, _ = size(A)
53
for mf in mfacts

test/runtests.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ using Test
44
using Random, LinearAlgebra
55
using Base.Threads
66

7+
rng = Random.Xoshiro(0)
8+
79
@testset verbose=true "NautyGraphs" begin
810
include("densenautygraph.jl")
911
include("nauty.jl")
1012
include("graphset.jl")
1113
include("utils.jl")
12-
VERSION >= v"1.9-" && include("interface.jl")
13-
include("aqua.jl")
14-
VERSION >= v"1.10" && include("jet.jl")
14+
include("interface.jl")
15+
VERSION >= v"1.12" && include("aqua.jl")
16+
VERSION >= v"1.12" && include("jet.jl")
1517
end

0 commit comments

Comments
 (0)