Skip to content

Commit

Permalink
Don't run doctests on 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Oct 7, 2024
1 parent 89caf9f commit 5da7d32
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ if GROUP == "All" || GROUP in ("ForwardDiff", "Zygote", "ReverseDiff", "Tracker"
include("ad/distributions.jl")
end

# Run doctests
@testset "doctests" begin
DocMeta.setdocmeta!(
DistributionsAD,
:DocTestSetup,
:(using DistributionsAD);
recursive=true,
)
doctest(DistributionsAD; manual=false)
# Run doctests (but not on older versions as rng seed behaves differently)
@static if VERSION >= v"1.10"
@testset "doctests" begin
DocMeta.setdocmeta!(
DistributionsAD,
:DocTestSetup,
:(using DistributionsAD);
recursive=true,
)
doctest(DistributionsAD; manual=false)
end
end

0 comments on commit 5da7d32

Please sign in to comment.