From 4416fa11966b5583b6ea0a6caa41a4c179895938 Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Mon, 10 Oct 2022 23:19:32 -0400 Subject: [PATCH] Create a Aqua workflow --- .github/workflows/Aqua.yml | 22 ++++++++++++++++++++++ .github/workflows/Documentation.yml | 2 +- Project.toml | 3 +-- test/aqua.jl | 4 ---- test/runtests.jl | 2 -- 5 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/Aqua.yml delete mode 100644 test/aqua.jl diff --git a/.github/workflows/Aqua.yml b/.github/workflows/Aqua.yml new file mode 100644 index 000000000..d4c00e964 --- /dev/null +++ b/.github/workflows/Aqua.yml @@ -0,0 +1,22 @@ +name: Aqua +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: julia-actions/setup-julia@latest + with: + version: '1' + - name: Aqua.jl + run: julia --color=yes -e ' + using Pkg + Pkg.add("Aqua") + Pkg.develop(path=".") + using Aqua, Krylov + Aqua.test_all(Krylov)' diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index fef36054d..406f15e0d 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -15,7 +15,7 @@ jobs: with: version: '1' - name: Install dependencies - run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + run: julia --project=docs --color=yes -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' - name: Build and deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Project.toml b/Project.toml index de944a7f4..74005745f 100644 --- a/Project.toml +++ b/Project.toml @@ -11,9 +11,8 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" julia = "^1.6.0" [extras] -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Aqua", "Random", "Test"] +test = ["Random", "Test"] diff --git a/test/aqua.jl b/test/aqua.jl deleted file mode 100644 index 1ecd8f4a9..000000000 --- a/test/aqua.jl +++ /dev/null @@ -1,4 +0,0 @@ -@testset "Aqua" begin - import Aqua - Aqua.test_all(Krylov) -end diff --git a/test/runtests.jl b/test/runtests.jl index 29a9e7ee6..b69865f61 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,8 +1,6 @@ using Krylov, LinearAlgebra, SparseArrays, Printf, Random, Test import Krylov.KRYLOV_SOLVERS -include("aqua.jl") - include("test_utils.jl") include("test_aux.jl") include("test_stats.jl")