From 763bab6edfc20de88dda35403a3e064ef2b32138 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Sun, 11 Feb 2024 20:11:46 -0500 Subject: [PATCH] Add Aqua tests --- Project.toml | 4 +++- test/runtests.jl | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index b612002..cb2c349 100644 --- a/Project.toml +++ b/Project.toml @@ -9,6 +9,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69" cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd" [compat] +Aqua = "0.8" CUDA = "5.1" Reexport = "1" cuDNN = "1.3" @@ -16,7 +17,8 @@ Test = "1.9" julia = "1.9" [extras] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test"] \ No newline at end of file +test = ["Aqua", "Test"] \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index b005d24..7603077 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,7 +1,10 @@ -using LuxCUDA, Test +using Aqua, LuxCUDA, Test @testset "LuxCUDA" begin @test LuxCUDA.USE_CUDA_GPU[] === nothing @test LuxCUDA.functional() isa Bool + + Aqua.test_all(LuxCUDA; ambiguities=false) + Aqua.test_ambiguities(LuxCUDA) end