From 898eb60d84de24b3854d894bb45195aa1a2884bc Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 7 Feb 2025 13:31:15 +1300 Subject: [PATCH 1/4] dummy commit --- src/LearnTestAPI.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LearnTestAPI.jl b/src/LearnTestAPI.jl index 67e4365..4a223b2 100644 --- a/src/LearnTestAPI.jl +++ b/src/LearnTestAPI.jl @@ -26,6 +26,7 @@ For details and options see [`LearnTestAPI.@testapi`](@ref) """ module LearnTestAPI + using LearnAPI import Test import Serialization From bde53feac916a99554584cde8257f955848361ac Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 7 Feb 2025 14:10:22 +1300 Subject: [PATCH 2/4] add a test --- test/learners/regression.jl | 2 +- test/tools.jl | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/learners/regression.jl b/test/learners/regression.jl index ae33e63..52e9e53 100644 --- a/test/learners/regression.jl +++ b/test/learners/regression.jl @@ -82,7 +82,7 @@ end # # BABY RIDGE learner = LearnTestAPI.BabyRidge(lambda=0.5) -@testapi learner data verbosity=1 +@testapi learner data verbosity=0 @testset "extra tests for baby ridge" begin model = fit(learner, Tables.subset(X, train), y[train]; verbosity=0) diff --git a/test/tools.jl b/test/tools.jl index 2ef6078..4b7d287 100644 --- a/test/tools.jl +++ b/test/tools.jl @@ -28,4 +28,9 @@ data = Data(v) LearnTestAPI.model_get(model, data) == v end +@test_logs( + (:info, LearnTestAPI.INFO_NEAR), + (@test_throws MethodError LearnTestAPI.isnear('a', 'b')), +) + true From 26c4a85ba91ce44abbf171bcd3dac83bc16432f2 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 7 Feb 2025 14:17:17 +1300 Subject: [PATCH 3/4] revert codecov --- .github/codecov.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index f60347c..93bcb69 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -1,6 +1,4 @@ coverage: - ignore: - - "**/gradient_descent.jl" project: default: threshold: 0.5% From a544a52c62eadd55cf624ba04682bfdb32e1dab3 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Fri, 7 Feb 2025 14:25:24 +1300 Subject: [PATCH 4/4] try codecov fix --- .github/codecov.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/codecov.yml b/.github/codecov.yml index 93bcb69..7bcb045 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -1,4 +1,7 @@ coverage: + ignore: + - "**/gradient_descent.jl" + status: project: default: threshold: 0.5%