From d85a187aca4604f2e2399723aa4845a3bd60b990 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Tue, 8 Oct 2024 12:04:12 -0400 Subject: [PATCH] test: install AllocCheck if needed --- .github/workflows/CI_SimpleNonlinearSolve.yml | 1 + lib/SimpleNonlinearSolve/Project.toml | 4 +--- lib/SimpleNonlinearSolve/test/core/allocation_tests.jl | 2 +- lib/SimpleNonlinearSolve/test/runtests.jl | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI_SimpleNonlinearSolve.yml b/.github/workflows/CI_SimpleNonlinearSolve.yml index 1f8306a8c..11c3ef7c2 100644 --- a/.github/workflows/CI_SimpleNonlinearSolve.yml +++ b/.github/workflows/CI_SimpleNonlinearSolve.yml @@ -35,6 +35,7 @@ jobs: group: - core - adjoint + - alloc_check steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 diff --git a/lib/SimpleNonlinearSolve/Project.toml b/lib/SimpleNonlinearSolve/Project.toml index 27dd69fed..82f69c6ad 100644 --- a/lib/SimpleNonlinearSolve/Project.toml +++ b/lib/SimpleNonlinearSolve/Project.toml @@ -37,7 +37,6 @@ SimpleNonlinearSolveTrackerExt = "Tracker" [compat] ADTypes = "1.2" Accessors = "0.1" -AllocCheck = "0.1.1" Aqua = "0.8.7" ArrayInterface = "7.16" BracketingNonlinearSolve = "1" @@ -72,7 +71,6 @@ Zygote = "0.6.70" julia = "1.10" [extras] -AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a" Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e" Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9" @@ -90,4 +88,4 @@ Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" [targets] -test = ["AllocCheck", "Aqua", "DiffEqBase", "Enzyme", "ExplicitImports", "InteractiveUtils", "NonlinearProblemLibrary", "Pkg", "PolyesterForwardDiff", "Random", "ReverseDiff", "StaticArrays", "Test", "TestItemRunner", "Tracker", "Zygote"] +test = ["Aqua", "DiffEqBase", "Enzyme", "ExplicitImports", "InteractiveUtils", "NonlinearProblemLibrary", "Pkg", "PolyesterForwardDiff", "Random", "ReverseDiff", "StaticArrays", "Test", "TestItemRunner", "Tracker", "Zygote"] diff --git a/lib/SimpleNonlinearSolve/test/core/allocation_tests.jl b/lib/SimpleNonlinearSolve/test/core/allocation_tests.jl index 67cee39c0..1f8472cf3 100644 --- a/lib/SimpleNonlinearSolve/test/core/allocation_tests.jl +++ b/lib/SimpleNonlinearSolve/test/core/allocation_tests.jl @@ -1,4 +1,4 @@ -@itesitem "Allocation Tests" tags=[:core] begin +@itesitem "Allocation Tests" tags=[:alloc_check] begin using SimpleNonlinearSolve, StaticArrays, AllocCheck quadratic_f(u, p) = u .* u .- p diff --git a/lib/SimpleNonlinearSolve/test/runtests.jl b/lib/SimpleNonlinearSolve/test/runtests.jl index c3f02030d..a76760dc8 100644 --- a/lib/SimpleNonlinearSolve/test/runtests.jl +++ b/lib/SimpleNonlinearSolve/test/runtests.jl @@ -6,6 +6,7 @@ const GROUP = lowercase(get(ENV, "GROUP", "All")) (GROUP == "all" || GROUP == "cuda") && Pkg.add(["CUDA"]) (GROUP == "all" || GROUP == "adjoint") && Pkg.add(["SciMLSensitivity"]) +(GROUP == "all" || GROUP == "alloc_check") && Pkg.add(["AllocCheck"]) @testset "SimpleNonlinearSolve.jl" begin if GROUP == "all"