Skip to content

Commit

Permalink
test: install AllocCheck if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 8, 2024
1 parent b177a3b commit d85a187
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI_SimpleNonlinearSolve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
group:
- core
- adjoint
- alloc_check
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
Expand Down
4 changes: 1 addition & 3 deletions lib/SimpleNonlinearSolve/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"]
2 changes: 1 addition & 1 deletion lib/SimpleNonlinearSolve/test/core/allocation_tests.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/SimpleNonlinearSolve/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d85a187

Please sign in to comment.