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
20 changes: 1 addition & 19 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,5 @@ concurrency:

jobs:
tests:
name: "Tests"
strategy:
fail-fast: false
matrix:
version:
- "1"
- "lts"
- "pre"
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
julia-version: "${{ matrix.version }}"
secrets: "inherit"

alloccheck:
name: "AllocCheck"
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
julia-version: "1"
group: "nopre"
uses: "SciML/.github/.github/workflows/grouped-tests.yml@v1"
secrets: "inherit"
7 changes: 6 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,31 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
AllocCheck = "0.2"
ArrayInterface = "7.25"
ChainRulesCore = "1.26"
ChainRulesTestUtils = "1"
ForwardDiff = "1.1"
InteractiveUtils = "1"
MacroTools = "0.5.16"
OrdinaryDiffEq = "6, 7"
PreallocationTools = "1.2"
PrecompileTools = "1.2.1"
RecursiveArrayTools = "3.54, 4"
SciMLBase = "2, 3"
StaticArrays = "1.9.18"
Test = "1"
julia = "1.10"

[extras]
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "OrdinaryDiffEq", "InteractiveUtils", "ChainRulesTestUtils", "AllocCheck", "SciMLBase"]
test = ["Test", "OrdinaryDiffEq", "InteractiveUtils", "ChainRulesTestUtils", "AllocCheck", "SciMLBase", "Pkg"]
15 changes: 15 additions & 0 deletions test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
LabelledArrays = "2ee39098-c373-598a-b85f-a56591580800"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
LabelledArrays = {path = "../.."}

[compat]
Aqua = "0.8"
JET = "0.9,0.10,0.11"
Test = "1"
julia = "1.10"
26 changes: 26 additions & 0 deletions test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using LabelledArrays
using Aqua
using JET
using Test

@testset "Aqua" begin
# ambiguities / unbound_args / undefined_exports / deps_compat disabled:
# genuine Aqua findings tracked in https://github.com/SciML/LabelledArrays.jl/issues/205
Aqua.test_all(
LabelledArrays;
ambiguities = false,
unbound_args = false,
undefined_exports = false,
deps_compat = false,
)
@test_broken false # Aqua ambiguities: method ambiguities found — tracked in https://github.com/SciML/LabelledArrays.jl/issues/205
@test_broken false # Aqua unbound_args: unbound type parameters found — tracked in https://github.com/SciML/LabelledArrays.jl/issues/205
@test_broken false # Aqua undefined_exports: undefined exports found — tracked in https://github.com/SciML/LabelledArrays.jl/issues/205
@test_broken false # Aqua deps_compat: missing compat (deps + extras) — tracked in https://github.com/SciML/LabelledArrays.jl/issues/205
end

@testset "JET" begin
# JET finds setfield! on immutable LArray in setproperty!(::LArray, ::Symbol, ::Any).
# Tracked in https://github.com/SciML/LabelledArrays.jl/issues/205
@test_broken false # JET: setfield! immutable LArray in setproperty! (src/larray.jl:96) — tracked in https://github.com/SciML/LabelledArrays.jl/issues/205
end
51 changes: 29 additions & 22 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,37 +1,44 @@
using Pkg
using LabelledArrays
using Test
using StaticArrays
using InteractiveUtils
using ChainRulesTestUtils
using AllocCheck

const GROUP = get(ENV, "GROUP", "All")

if GROUP == "All"
@time begin
@time @testset "SLArrays" begin
include("slarrays.jl")
end
@time @testset "LArrays" begin
include("larrays.jl")
end
@time @testset "DiffEq" begin
include("diffeq.jl")
end
@time @testset "ChainRules" begin
include("chainrules.jl")
if GROUP == "QA"
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.instantiate()
include("qa/qa.jl")
else
if GROUP == "All" || GROUP == "Core"
@time begin
@time @testset "SLArrays" begin
include("slarrays.jl")
end
@time @testset "LArrays" begin
include("larrays.jl")
end
@time @testset "DiffEq" begin
include("diffeq.jl")
end
@time @testset "ChainRules" begin
include("chainrules.jl")
end
end
end
end

if GROUP == "All" || GROUP == "RecursiveArrayTools"
@time @testset "RecursiveArrayTools" begin
include("recursivearraytools.jl")
if GROUP == "All" || GROUP == "Core" || GROUP == "RecursiveArrayTools"
@time @testset "RecursiveArrayTools" begin
include("recursivearraytools.jl")
end
end
end

if GROUP == "nopre"
using AllocCheck
@time @testset "AllocCheck" begin
include("alloc_tests.jl")
if GROUP == "AllocCheck"
@time @testset "AllocCheck" begin
include("alloc_tests.jl")
end
end
end
8 changes: 8 additions & 0 deletions test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Core]
versions = ["lts", "1", "pre"]

[AllocCheck]
versions = ["1"]

[QA]
versions = ["lts", "1"]
Loading