Skip to content

Commit

Permalink
Test doc on Julia v1.10 (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored Mar 19, 2024
1 parent 4c12ca3 commit f603a13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1'
version: '1.10'
- run: |
julia --project=docs -e '
using Pkg
Expand Down
8 changes: 5 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ using Aqua
end

using Documenter
DocMeta.setdocmeta!(BandedMatrices, :DocTestSetup, :(using BandedMatrices))
@testset "doctests" begin
doctest(BandedMatrices)
if v"1.10" <= VERSION < v"1.11.0-"
DocMeta.setdocmeta!(BandedMatrices, :DocTestSetup, :(using BandedMatrices))
@testset "doctests" begin
doctest(BandedMatrices)
end
end

include("test_banded.jl")
Expand Down

0 comments on commit f603a13

Please sign in to comment.