diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 628e5517d..c1808ccd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: arch: - x64 group: + - 'Aqua' - 'Transform' - 'BaseKernels' - 'Kernels' diff --git a/Project.toml b/Project.toml index 24da5ddcc..8ca0709e1 100644 --- a/Project.toml +++ b/Project.toml @@ -29,11 +29,14 @@ Distances = "0.10.9" FillArrays = "0.10, 0.11, 0.12, 0.13, 1" Functors = "0.1, 0.2, 0.3, 0.4" IrrationalConstants = "0.1, 0.2" +LinearAlgebra = "1" LogExpFunctions = "0.2.1, 0.3" +Random = "1" Requires = "1.0.1" SpecialFunctions = "0.8, 0.9, 0.10, 1, 2" Statistics = "1" StatsBase = "0.32, 0.33, 0.34" TensorCore = "0.1" +Test = "1" ZygoteRules = "0.2" julia = "1.3" diff --git a/test/Project.toml b/test/Project.toml index 7ef690d1d..b48170e06 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,4 +1,5 @@ [deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9" ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a" @@ -22,6 +23,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [compat] +Aqua = "0.8" AxisArrays = "0.4.3" Compat = "3, 4" Distances = "0.10" diff --git a/test/runtests.jl b/test/runtests.jl index e054b992a..55dd6eefd 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,4 +1,6 @@ using KernelFunctions + +using Aqua using AxisArrays using ChainRulesCore using ChainRulesTestUtils @@ -64,6 +66,13 @@ const GROUP = get(ENV, "GROUP", "") include("test_utils.jl") @testset "KernelFunctions" begin + if GROUP == "" || GROUP == "Aqua" + @testset "Aqua" begin + Aqua.test_all(KernelFunctions; ambiguities=false) + # Ref https://github.com/JuliaTesting/Aqua.jl/issues/77 + Aqua.test_ambiguities(KernelFunctions; recursive=false) + end + end if GROUP == "" || GROUP == "Transform" @testset "transform" begin include("transform/transform.jl")