Skip to content

Commit

Permalink
aqua CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Dec 12, 2023
1 parent e39894e commit b301c50
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ version = "0.4.4"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[compat]
Aqua = "0.8"
Distributions = "0.25"
Random = "1"
Statistics = "1"
Test = "1"
julia = "1.6"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Statistics", "Test", "Distributions"]
test = ["Aqua", "Statistics", "Test", "Distributions"]
12 changes: 12 additions & 0 deletions test/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using PoissonRandom, Aqua
@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(PoissonRandom)
Aqua.test_ambiguities(PoissonRandom, recursive = false)
Aqua.test_deps_compat(PoissonRandom)
Aqua.test_piracies(PoissonRandom,
treat_as_own = [])
Aqua.test_project_extras(PoissonRandom)
Aqua.test_stale_deps(PoissonRandom)
Aqua.test_unbound_args(PoissonRandom)
Aqua.test_undefined_exports(PoissonRandom)
end
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ using PoissonRandom
import Distributions
using Test, Statistics

include("qa.jl")

n_tsamples = 10^5

function test_samples(rand_func,
Expand Down

0 comments on commit b301c50

Please sign in to comment.