From d6ac377b06b8e36120f1c3860d14e41e4441ccc7 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:14:47 +0200 Subject: [PATCH 1/4] Test on LTS and pre-release with new syntax 'lts' and 'pre' --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82940e80f..7f9d6c94f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,8 @@ jobs: matrix: version: - '1' - - '1.6' + - 'lts' + - 'pre' os: - ubuntu-latest - macos-latest From bf1432f2aee30022296ddeda78b1fe53c3caf0a6 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:04:38 +0100 Subject: [PATCH 2/4] Revert lts to 1.6 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f9d6c94f..c6d616b63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: matrix: version: - '1' - - 'lts' + - '1.6' - 'pre' os: - ubuntu-latest From f55e1171ca381c07a6d44f70f6c82c1b4cef8511 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:13:01 +0100 Subject: [PATCH 3/4] Lower sensitivity of JET tests --- test/runtests.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 83644faff..b85d4136d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -154,7 +154,10 @@ tests = [ if VERSION >= v"1.9" @assert get_pkg_version("JET") >= v"0.8.4" JET.test_package( - Graphs; target_defined_modules=true, ignore_missing_comparison=true + Graphs; + target_defined_modules=true, + ignore_missing_comparison=true, + mode=:typo, # TODO: switch back to `:basic` once the union split caused by traits is fixed ) end end From b993f9dd65fcbc4ec6907cfe73de522bc3b09d79 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:29:08 +0100 Subject: [PATCH 4/4] Deactivate some random doctests --- src/SimpleGraphs/generators/randgraphs.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SimpleGraphs/generators/randgraphs.jl b/src/SimpleGraphs/generators/randgraphs.jl index ee10906b6..750e22b5a 100644 --- a/src/SimpleGraphs/generators/randgraphs.jl +++ b/src/SimpleGraphs/generators/randgraphs.jl @@ -150,7 +150,7 @@ julia> using Graphs julia> erdos_renyi(10, 0.5) {10, 20} undirected simple Int64 graph ``` -```jldoctest +``` julia> using Graphs julia> erdos_renyi(10, 0.5, is_directed=true, seed=123) @@ -186,7 +186,7 @@ graph with `n` vertices and `ne` edges. - `seed=nothing`: set the RNG seed. # Examples -```jldoctest +``` julia> using Graphs julia> erdos_renyi(10, 30) @@ -703,7 +703,7 @@ julia> edges(g) |> collect Edge 2 => 3 Edge 2 => 4 ``` -```jldoctest +``` julia> using Graphs julia> g = static_fitness_model(5, [1, 1, 0.5, 0.1], seed=123) @@ -762,7 +762,7 @@ Time complexity is ``\\mathcal{O}(|V| + |E| log |E|)``. - Goh K-I, Kahng B, Kim D: Universal behaviour of load distribution in scale-free networks. Phys Rev Lett 87(27):278701, 2001. ## Examples -```jldoctest +``` julia> using Graphs julia> g = static_fitness_model(6, [1, 0.2, 0.2, 0.2], [0.1, 0.1, 0.1, 0.9]; seed=123)