Skip to content

Commit f154de2

Browse files
Fix compat. Allow newer Aqua. Only run Aqua on repo tests. (#471)
* fix compat. Allow newer Aqua * rm removed Aqua test * only run aqua stuff on repo CI
1 parent 7786a73 commit f154de2

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
- run: julia --color=yes .ci/test_and_change_uuid.jl
5353
- uses: julia-actions/julia-buildpkg@v1
5454
- uses: julia-actions/julia-runtest@v1
55+
env:
56+
SPARSEARRAYS_AQUA_TEST: true
5557
- uses: julia-actions/julia-processcoverage@v1
5658
- uses: codecov/codecov-action@v1
5759
with:

Project.toml

+10-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
1010
SuiteSparse_jll = "bea87d4a-7f5b-5778-9afe-8cc45184846c"
1111

1212
[compat]
13-
Aqua = "0.7"
13+
Aqua = "0.7, 0.8"
14+
Dates = "<0.0.1, 1"
15+
InteractiveUtils = "<0.0.1, 1"
16+
Libdl = "<0.0.1, 1"
17+
LinearAlgebra = "<0.0.1, 1"
18+
Pkg = "<0.0.1, 1"
19+
Printf = "<0.0.1, 1"
20+
Random = "<0.0.1, 1"
21+
Serialization = "<0.0.1, 1"
1422
SuiteSparse_jll = "7.2.1"
23+
Test = "<0.0.1, 1"
1524
julia = "1.11"
1625

1726
[extras]

test/ambiguous.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ if Base.find_package("Aqua") === nothing
1616
iob = IOBuffer()
1717
Pkg.activate(; temp = true)
1818
try
19-
Pkg.add("Aqua", io=iob) # Needed for custom julia version resolve tests
19+
# TODO: make this version tie to compat in Project.toml
20+
# or do this another safer way
21+
Pkg.add(name="Aqua", version="0.8", io=iob) # Needed for custom julia version resolve tests
2022
catch
2123
println(String(take!(iob)))
2224
rethrow()
@@ -44,9 +46,7 @@ using Test, LinearAlgebra, SparseArrays, Aqua
4446
@testset "Compat bounds" begin
4547
Aqua.test_deps_compat(SparseArrays)
4648
end
47-
@testset "Project.toml formatting" begin
48-
Aqua.test_project_toml_formatting(SparseArrays)
49-
end
49+
5050
@testset "Piracy" begin
5151
@test_broken Aqua.Piracy.hunt(SparseArrays) == Method[]
5252
end

test/runtests.jl

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22
using Test, LinearAlgebra, SparseArrays
33

4+
if Base.get_bool_env("SPARSEARRAYS_AQUA_TEST", false)
5+
include("ambiguous.jl")
6+
end
7+
48
for file in readlines(joinpath(@__DIR__, "testgroups"))
59
file == "" && continue # skip empty lines
610
include(file * ".jl")

test/testgroups

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
allowscalar
2-
ambiguous
32
cholmod
43
fixed
54
higherorderfns

0 commit comments

Comments
 (0)