Skip to content

Commit 2069135

Browse files
committed
Apply suggestions
1 parent c9216fe commit 2069135

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/runtests.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ using KernelFunctions: SimpleKernel, metric, kappa, ColVecs, RowVecs, TestUtils
1919

2020
using KernelFunctions.TestUtils: test_interface
2121

22-
const GROUP = get(ENV, "GROUP", "All")
22+
# The GROUP is used to run different sets of tests in parallel on the GitHub Actions CI.
23+
# If you want to introduce a new group, ensure you also add it to .github/workflows/ci.yml
24+
const GROUP = get(ENV, "GROUP", "")
2325

2426
# Writing tests:
2527
# 1. The file structure of the test should match precisely the file structure of src.
@@ -56,7 +58,7 @@ const GROUP = get(ENV, "GROUP", "All")
5658
include("test_utils.jl")
5759

5860
@testset "KernelFunctions" begin
59-
if GROUP == "All" || GROUP == "Transform"
61+
if GROUP == "" || GROUP == "Transform"
6062
@testset "transform" begin
6163
include(joinpath("transform", "transform.jl"))
6264
print(" ")
@@ -78,7 +80,7 @@ include("test_utils.jl")
7880
@info "Ran tests on Transform"
7981
end
8082

81-
if GROUP == "All" || GROUP == "BaseKernels"
83+
if GROUP == "" || GROUP == "BaseKernels"
8284
@testset "basekernels" begin
8385
include(joinpath("basekernels", "constant.jl"))
8486
print(" ")
@@ -112,7 +114,7 @@ include("test_utils.jl")
112114
@info "Ran tests on BaseKernel"
113115
end
114116

115-
if GROUP == "All" || GROUP == "Kernels"
117+
if GROUP == "" || GROUP == "Kernels"
116118
@testset "kernels" begin
117119
include(joinpath("kernels", "kernelproduct.jl"))
118120
include(joinpath("kernels", "kernelsum.jl"))
@@ -126,7 +128,7 @@ include("test_utils.jl")
126128
@info "Ran tests on Kernel"
127129
end
128130

129-
if GROUP == "All" || GROUP == "MultiOutput"
131+
if GROUP == "" || GROUP == "MultiOutput"
130132
@testset "multi_output" begin
131133
include(joinpath("mokernels", "moinput.jl"))
132134
include(joinpath("mokernels", "independent.jl"))
@@ -137,7 +139,7 @@ include("test_utils.jl")
137139
@info "Ran tests on Multi-Output Kernels"
138140
end
139141

140-
if GROUP == "All" || GROUP == "Others"
142+
if GROUP == "" || GROUP == "Others"
141143
include("utils.jl")
142144

143145
@testset "distances" begin
@@ -148,14 +150,12 @@ include("test_utils.jl")
148150
end
149151
@info "Ran tests on Distances"
150152

151-
if GROUP == "All" || GROUP == "Matrix"
152-
@testset "matrix" begin
153-
include(joinpath("matrix", "kernelmatrix.jl"))
154-
include(joinpath("matrix", "kernelkroneckermat.jl"))
155-
include(joinpath("matrix", "kernelpdmat.jl"))
156-
end
157-
@info "Ran tests on matrix"
153+
@testset "matrix" begin
154+
include(joinpath("matrix", "kernelmatrix.jl"))
155+
include(joinpath("matrix", "kernelkroneckermat.jl"))
156+
include(joinpath("matrix", "kernelpdmat.jl"))
158157
end
158+
@info "Ran tests on matrix"
159159

160160
@testset "approximations" begin
161161
include(joinpath("approximations", "nystrom.jl"))

0 commit comments

Comments
 (0)