diff --git a/README.md b/README.md index b2637681..2f749cc0 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ [![Docs: dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaGaussianProcesses.github.io/AbstractGPs.jl/dev) [![CI](https://github.com/JuliaGaussianProcesses/AbstractGPs.jl/workflows/CI/badge.svg?branch=master)](https://github.com/JuliaGaussianProcesses/AbstractGPs.jl/actions/workflows/CI.yml?query=branch%3Amaster) [![Codecov](https://codecov.io/gh/JuliaGaussianProcesses/AbstractGPs.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaGaussianProcesses/AbstractGPs.jl) -[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle) +[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/JuliaDiff/BlueStyle) +[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) [![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac) [![DOI](https://zenodo.org/badge/254674526.svg)](https://zenodo.org/badge/latestdoi/254674526) diff --git a/test/Project.toml b/test/Project.toml index 27e5552d..d21cdc67 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,4 +1,5 @@ [deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b" @@ -13,6 +14,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [compat] +Aqua = "0.8" Distributions = "0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25" Documenter = "1" FillArrays = "0.11, 0.12, 0.13, 1" diff --git a/test/runtests.jl b/test/runtests.jl index cb88cbba..d5edac8d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -17,6 +17,7 @@ using AbstractGPs: inducing_points, TestUtils +using Aqua using Documenter using Distributions: MvNormal, PDMat, loglikelihood, Distributions using FillArrays @@ -39,6 +40,11 @@ include("test_util.jl") @testset "AbstractGPs" begin if GROUP == "All" || GROUP == "AbstractGPs" + @testset "Code quality (Aqua.jl)" begin + Aqua.test_all(AbstractGPs; ambiguities=false) + # Ref https://github.com/JuliaTesting/Aqua.jl/issues/77 + Aqua.test_ambiguities(AbstractGPs; recursive=false) + end @testset "util" begin include("util/common_covmat_ops.jl") include("util/plotting.jl")