Skip to content

Commit acf0367

Browse files
Merge pull request #10 from JuliaGraphs/maintenance
- Bumps min Julia version to v1.6. - Bumps min Graphs.jl version to v1.6.0. - Adds the Julia versions v1.6 and pre to the testing workflow. - Makes tests work again as they did depend on the printed representation of a graph and that representation has changed. - Bumps the version of this package to v0.2.1.
2 parents fbdeeeb + 7ccc27d commit acf0367

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@ jobs:
1616
matrix:
1717
version:
1818
- '1'
19+
- '1.6'
20+
- 'pre'
1921
os:
2022
- ubuntu-latest
2123
arch:
2224
- x64
2325
steps:
24-
- uses: actions/checkout@v2
25-
- uses: julia-actions/setup-julia@v1
26+
- uses: actions/checkout@v4
27+
- uses: julia-actions/setup-julia@v2
2628
with:
2729
version: ${{ matrix.version }}
2830
arch: ${{ matrix.arch }}
29-
- uses: actions/cache@v1
31+
- uses: actions/cache@v4
3032
env:
3133
cache-name: cache-artifacts
3234
with:

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name = "SNAPDatasets"
22
uuid = "fc66bc1b-447b-53fc-8f09-bc9cfb0b0c10"
33
authors = ["JuliaGraphs"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
77
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
88

99
[compat]
10-
Graphs = "1.4"
11-
julia = "1"
10+
Graphs = "1.6"
11+
julia = "1.6"
1212

1313
[extras]
1414
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
using Graphs: SimpleGraph, nv, ne
12
using SNAPDatasets
23
using Test
34

45
@testset "SNAP Datasets" begin
5-
@test @inferred "$(loadsnap(:as_caida))" == "{26475, 53381} undirected simple Int64 graph"
6+
as_caida = loadsnap(:as_caida)
7+
@test as_caida isa SimpleGraph{Int64}
8+
@test nv(as_caida) == 26475
9+
@test ne(as_caida) == 53381
610
@test_throws ErrorException loadsnap()
711
@test_throws ErrorException loadsnap(:badsnapxxxxx)
812
end

0 commit comments

Comments
 (0)