Skip to content

Commit

Permalink
Add Aqua.jl and JET.jl to testing (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch authored Dec 16, 2023
1 parent c030ce8 commit 84c9a87
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
SimpleUnPack = "ce78b400-467f-4804-87d8-8f486da07d0a"

[compat]
LinearAlgebra = "1"
PrecompileTools = "1"
SimpleUnPack = "1"
Test = "1"
julia = "1.9"

[extras]
Expand Down
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ExponentialUtilities = "d4d017d3-3776-5f7e-afef-a10c40355c18"
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Expand Down
11 changes: 11 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ using LinearAlgebra, SpecialFunctions
using Test, FiniteHorizonGramians, ExponentialUtilities
using ForwardDiff, FiniteDiff
import FiniteHorizonGramians as FHG
using Aqua, JET

include("test_utils.jl")
include("test_initial_approximations.jl")
Expand Down Expand Up @@ -36,4 +37,14 @@ numeric_types = (Float64,)
test_ForwardDiff()
end

@testset "Code quality (Aqua.jl)" begin
Aqua.test_all(FiniteHorizonGramians)
end

@testset "Code linting (JET.jl)" begin
JET.test_package(
FiniteHorizonGramians;
target_defined_modules=true,
)
end
end

0 comments on commit 84c9a87

Please sign in to comment.