From b301c5039af4a3049c3c25db9f43e7367bea148f Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Tue, 12 Dec 2023 05:29:23 +0100 Subject: [PATCH] aqua CI --- Project.toml | 8 +++++++- test/qa.jl | 12 ++++++++++++ test/runtests.jl | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 test/qa.jl diff --git a/Project.toml b/Project.toml index 7c59930..621e50c 100644 --- a/Project.toml +++ b/Project.toml @@ -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"] diff --git a/test/qa.jl b/test/qa.jl new file mode 100644 index 0000000..4a633e1 --- /dev/null +++ b/test/qa.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index 5bd9618..8d511d6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,6 +2,8 @@ using PoissonRandom import Distributions using Test, Statistics +include("qa.jl") + n_tsamples = 10^5 function test_samples(rand_func,