Skip to content

Commit

Permalink
IO tests are only run for latest Julia version
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmandlik committed Oct 14, 2024
1 parent 89a231f commit 899e6a5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,22 @@ function Mill.unpack2mill(ds::LazyNode{:Sentence})
BagNode(x, Mill.length2bags(length.(s)))
end

@testset "Doctests" begin
DocMeta.setdocmeta!(Mill, :DocTestSetup, quote
using Mill, Flux, Random, SparseArrays, Accessors, HierarchicalUtils
# do not shorten prints in doctests
ENV["LINES"] = ENV["COLUMNS"] = typemax(Int)
end; recursive=true)
doctest(Mill)
@static if VERSION v"1.11.0"
@testset "Doctests" begin
DocMeta.setdocmeta!(Mill, :DocTestSetup, quote
using Mill, Flux, Random, SparseArrays, Accessors, HierarchicalUtils
# do not shorten prints in doctests
ENV["LINES"] = ENV["COLUMNS"] = typemax(Int)
end; recursive=true)
doctest(Mill)
end
end

for test_f in readdir(".")
(endswith(test_f, ".jl") && test_f "runtests.jl") || continue
@static if VERSION < v"1.11.0"
test_f == "io.jl" && continue
end
@testset verbose = true "$test_f" begin
include(test_f)
end
Expand Down

0 comments on commit 899e6a5

Please sign in to comment.