diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index b4f7284..8d4fa40 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,7 +17,7 @@ jobs: - name: Install JuliaFormatter and format run: | julia -e 'import Pkg; Pkg.add("JuliaFormatter")' - julia -e 'using JuliaFormatter; format(".")' + julia -e 'using JuliaFormatter; format(".", BlueStyle())' # https://github.com/marketplace/actions/create-pull-request # https://github.com/peter-evans/create-pull-request#reference-example - name: Create Pull Request diff --git a/Project.toml b/Project.toml index e75ce85..169a28a 100644 --- a/Project.toml +++ b/Project.toml @@ -2,3 +2,6 @@ name = "CalculusOfVariations" uuid = "33922b39-d0c9-4121-8f1f-33c1dad529cf" authors = ["Olivier Cots "] version = "0.1.3" + +[compat] +julia = "1.10" diff --git a/README.md b/README.md index 9f8f955..c4d7143 100644 --- a/README.md +++ b/README.md @@ -12,15 +12,22 @@ [doc-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg [doc-stable-url]: https://control-toolbox.org/calculus_of_variations/stable/ +[licence-img]: https://img.shields.io/badge/License-MIT-yellow.svg +[licence-url]: https://github.com/control-toolbox/calculus_of_variations/blob/master/LICENSE + +[aqua-img]: https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg +[aqua-url]: https://github.com/JuliaTesting/Aqua.jl + This repo is part of the [control-toolbox ecosystem](https://github.com/control-toolbox). The control-toolbox ecosystem gathers Julia packages for mathematical control and applications. The root package is [OptimalControl.jl](https://github.com/control-toolbox/OptimalControl.jl) which aims to provide tools to modelise and solve optimal control problems with ordinary differential equations by direct and indirect methods. [![doc OptimalControl.jl](https://img.shields.io/badge/Documentation-OptimalControl.jl-blue)](http://control-toolbox.org/OptimalControl.jl) - -| **Documentation** | **Code Status** | -|:-------------------|:-----------------| -| [![Documentation][doc-stable-img]][doc-stable-url] [![Documentation][doc-dev-img]][doc-dev-url] | [![Build Status][ci-img]][ci-url] [![Covering Status][co-img]][co-url] | +| **Name** | **Badge** | +:-------------------|:------------------| +| Documentation | [![Documentation][doc-stable-img]][doc-stable-url] [![Documentation][doc-dev-img]][doc-dev-url] | +| Code Status | [![Build Status][ci-img]][ci-url] [![Covering Status][co-img]][co-url] [![Aqua.jl][aqua-img]][aqua-url] | +| Licence | [![License: MIT][licence-img]][licence-url] | ## Contributing diff --git a/test/Project.toml b/test/Project.toml index 0c36332..1688c79 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,2 +1,7 @@ [deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[compat] +Aqua = "0.8" +julia = "1.10" diff --git a/test/runtests.jl b/test/runtests.jl index ebe4cfd..d394834 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,9 +1,10 @@ -using Test +using Aqua using CalculusOfVariations +using Test # @testset verbose = true showtiming = true "Base" begin - for name ∈ (:default,) + for name ∈ (:aqua, :default,) @testset "$(name)" begin test_name = Symbol(:test_, name) include("$(test_name).jl") diff --git a/test/test_aqua.jl b/test/test_aqua.jl new file mode 100644 index 0000000..de92d0c --- /dev/null +++ b/test/test_aqua.jl @@ -0,0 +1,13 @@ +function test_aqua() + @testset "Aqua.jl" begin + Aqua.test_all( + CalculusOfVariations; + ambiguities=false, + #stale_deps=(ignore=[:SomePackage],), + deps_compat=(ignore=[:LinearAlgebra, :Unicode],), + piracies=true, + ) + # do not warn about ambiguities in dependencies + Aqua.test_ambiguities(CalculusOfVariations) + end +end \ No newline at end of file