Skip to content

Commit

Permalink
tests using Aqua.jl (#139)
Browse files Browse the repository at this point in the history
* remove undefined exports

* add tests with Aqua.jl

* set version to v0.5.18
  • Loading branch information
ranocha committed Jun 17, 2022
1 parent 09ef8b2 commit a65ce70
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SummationByPartsOperators"
uuid = "9f78cca6-572e-554e-b819-917d2f1cf240"
author = ["Hendrik Ranocha"]
version = "0.5.17"
version = "0.5.18"

[deps]
ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
Expand Down
2 changes: 1 addition & 1 deletion src/SummationByPartsOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export integrate, left_boundary_weight, right_boundary_weight,
compute_coefficients, compute_coefficients!
export periodic_central_derivative_operator, periodic_derivative_operator, derivative_operator,
dissipation_operator, var_coef_derivative_operator,
fourier_derivative_operator, spectral_viscosity_operator, super_spectral_viscosity_operator,
fourier_derivative_operator,
legendre_derivative_operator, legendre_second_derivative_operator
export UniformMesh1D, UniformPeriodicMesh1D
export couple_continuously, couple_discontinuously
Expand Down
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -10,6 +11,7 @@ StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Aqua = "0.5"
BandedMatrices = "0.15, 0.16, 0.17"
DiffEqCallbacks = "2"
OrdinaryDiffEq = "5, 6"
Expand Down
7 changes: 7 additions & 0 deletions test/aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Aqua
using SummationByPartsOperators

Aqua.test_all(SummationByPartsOperators;
ambiguities=false, # a lot of false positives from dependencies
unbound_args=false # TODO: a strange problem I do not understand right now
)
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const SBP_TEST = get(ENV, "SBP_TEST", "all")
@time @testset "Sum of Operators" begin include("sum_of_operators_test.jl") end
@time @testset "Upwind Operators" begin include("upwind_operators_test.jl") end
@time @testset "Special Matrix Types" begin include("special_matrix_types.jl") end
@time @testset "Aqua" begin include("aqua.jl") end
end

@time if SBP_TEST == "all" || SBP_TEST == "part2"
Expand Down

2 comments on commit a65ce70

@ranocha
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/62504

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.18 -m "<description of version>" a65ce70962d968be214c55d89753bba78ea50ab2
git push origin v0.5.18

Please sign in to comment.