Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
fail-fast: false
matrix:
version:
- 'min'
- 'lts'
- '1'
os:
Expand Down
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Documenter = "1"
FillArrays = "1"
LinearAlgebra = "1"
MatrixFactorizations = "1, 2, 3"
ParallelTestRunner = "2"
Random = "1"
SparseArrays = "1"
Test = "1"
Expand All @@ -33,9 +34,10 @@ julia = "1.10"
[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
ParallelTestRunner = "d3525ed8-44d0-4b2c-a655-542cee43accc"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "Random", "SparseArrays", "Test", "Documenter"]
test = ["Aqua", "ParallelTestRunner", "Random", "SparseArrays", "Test", "Documenter"]
36 changes: 14 additions & 22 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
using BlockBandedMatrices
using Test
using ParallelTestRunner

import Aqua
downstream_test = "--downstream_integration_test" in ARGS
@testset "Project quality" begin
Aqua.test_all(BlockBandedMatrices, ambiguities=false, piracies=false,
stale_deps=!downstream_test)
const init_code = quote
using Test
using BlockBandedMatrices
end

using Documenter
@testset "docstrings" begin
# don't test docstrings on old versions to avoid failures due to changes in types
if VERSION >= v"1.9"
DocMeta.setdocmeta!(BlockBandedMatrices, :DocTestSetup, :(using BlockBandedMatrices); recursive=true)
doctest(BlockBandedMatrices)
end
# Start with autodiscovered tests
testsuite = find_tests(pwd())

if "--downstream_integration_test" in ARGS
delete!(testsuite, "test_aqua")
end

include("test_blockbanded.jl")
include("test_blockskyline.jl")
include("test_bandedblockbanded.jl")
include("test_broadcasting.jl")
include("test_linalg.jl")
include("test_misc.jl")
include("test_triblockbanded.jl")
include("test_adjtransblockbanded.jl")
include("test_blockskylineqr.jl")
filtered_args = filter(!=("--downstream_integration_test"), ARGS)
# Parse arguments
args = parse_args(filtered_args)

runtests(BlockBandedMatrices, args; init_code, testsuite)
4 changes: 4 additions & 0 deletions test/test_aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Aqua
@testset "Project quality" begin
Aqua.test_all(BlockBandedMatrices, ambiguities=false, piracies=false)
end
8 changes: 8 additions & 0 deletions test/test_docstrings.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Documenter
@testset "docstrings" begin
# don't test docstrings on old versions to avoid failures due to changes in types
if VERSION >= v"1.9"
DocMeta.setdocmeta!(BlockBandedMatrices, :DocTestSetup, :(using BlockBandedMatrices); recursive=true)
doctest(BlockBandedMatrices)
end
end
Loading