From d242cf94dc7e8ae587c26210691616dbad662b5c Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Tue, 12 Dec 2023 04:35:59 +0100 Subject: [PATCH] aqua CI --- .github/workflows/CI.yml | 1 - .github/workflows/Downstream.yml | 2 +- Project.toml | 18 ++++++++++++++++-- test/qa.jl | 13 +++++++++++++ test/runtests.jl | 1 + 5 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 test/qa.jl diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fe44e9e..5c98e60 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,7 +19,6 @@ jobs: - Core version: - '1' - - '1.6' steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 1ce7465..fba9c99 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -13,7 +13,7 @@ jobs: GROUP: ${{ matrix.package.group }} strategy: matrix: - julia-version: [1,1.6] + julia-version: [1] os: [ubuntu-latest] package: - {user: SciML, repo: StochasticDiffEq.jl, group: Interface} diff --git a/Project.toml b/Project.toml index 502f2d0..e602e30 100644 --- a/Project.toml +++ b/Project.toml @@ -30,24 +30,38 @@ ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267" DiffEqNoiseProcessReverseDiffExt = "ReverseDiff" [compat] +Aqua = "0.8" +Cubature = "1" DiffEqBase = "6.11" Distributions = "0.22, 0.23, 0.24, 0.25" GPUArraysCore = "0.1" +HypothesisTests = "0.11" +LinearAlgebra = "1" +Markdown = "1" Optim = "1" +Pkg = "1" PoissonRandom = "0.4" QuadGK = "2" +Random = "1" Random123 = "1.2" RandomNumbers = "1.3" RecipesBase = "0.7, 0.8, 1.0" RecursiveArrayTools = "2" Requires = "1" ResettableStacks = "0.6, 1.0" +ReverseDiff = "1" +SDEProblemLibrary = "0.1" SciMLBase = "1, 2" +StaticArrays = "1" StaticArraysCore = "1.4" Statistics = "1" -julia = "1.6" +StatsBase = "0.34" +StochasticDiffEq = "6" +Test = "1" +julia = "1.9" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" Cubature = "667455a9-e2ce-5579-9412-b964f529a492" Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5" @@ -61,4 +75,4 @@ StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "SDEProblemLibrary", "Pkg", "StatsBase", "StaticArrays", "StochasticDiffEq", "Distributions", "HypothesisTests", "Cubature", "RandomNumbers"] +test = ["Aqua", "Test", "SDEProblemLibrary", "Pkg", "StatsBase", "StaticArrays", "StochasticDiffEq", "Distributions", "HypothesisTests", "Cubature", "RandomNumbers"] diff --git a/test/qa.jl b/test/qa.jl new file mode 100644 index 0000000..1eaf6de --- /dev/null +++ b/test/qa.jl @@ -0,0 +1,13 @@ +using DiffEqNoiseProcess, Aqua +@testset "Aqua" begin + Aqua.find_persistent_tasks_deps(DiffEqNoiseProcess) + Aqua.test_ambiguities(DiffEqNoiseProcess, recursive = false) + Aqua.test_deps_compat(DiffEqNoiseProcess) + Aqua.test_piracies(DiffEqNoiseProcess, + treat_as_own = [DiffEqNoiseProcess.AbstractNoiseProcess, + DiffEqNoiseProcess.AbstractDEAlgorithm]) + Aqua.test_project_extras(DiffEqNoiseProcess) + Aqua.test_stale_deps(DiffEqNoiseProcess) + Aqua.test_unbound_args(DiffEqNoiseProcess) + Aqua.test_undefined_exports(DiffEqNoiseProcess) +end diff --git a/test/runtests.jl b/test/runtests.jl index 4f80401..cccf2f6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -11,6 +11,7 @@ end @time begin if GROUP == "All" || GROUP == "Core1" + include("qa.jl") include("interpolation_test.jl") include("RSwM1_test.jl") include("RSwM2_test.jl")