Skip to content

Commit 563b8fb

Browse files
committed
Separate tests into two groups
1 parent 64afdbc commit 563b8fb

File tree

2 files changed

+27
-32
lines changed

2 files changed

+27
-32
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
os: macos-latest
6161
arch: aarch64
6262
num_threads: 2
63+
test_group:
64+
- Group1
65+
- Group2
66+
- Downstream
6367

6468
steps:
6569
- uses: actions/checkout@v4
@@ -75,7 +79,7 @@ jobs:
7579

7680
- uses: julia-actions/julia-runtest@v1
7781
env:
78-
GROUP: All
82+
GROUP: ${{ matrix.test_group }}
7983
JULIA_NUM_THREADS: ${{ matrix.runner.num_threads }}
8084

8185
- uses: julia-actions/julia-processcoverage@v1

test/runtests.jl

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -42,54 +42,45 @@ Random.seed!(100)
4242

4343
include("test_util.jl")
4444

45-
@testset "DynamicPPL.jl" begin
46-
if GROUP == "All" || GROUP == "DynamicPPL"
47-
@testset "interface" begin
48-
include("utils.jl")
49-
include("compiler.jl")
50-
include("varnamedvector.jl")
51-
include("varinfo.jl")
52-
include("simple_varinfo.jl")
53-
include("model.jl")
54-
include("sampler.jl")
55-
include("independence.jl")
56-
include("distribution_wrappers.jl")
57-
include("contexts.jl")
58-
include("context_implementations.jl")
59-
include("logdensityfunction.jl")
60-
include("linking.jl")
61-
62-
include("threadsafe.jl")
63-
64-
include("serialization.jl")
65-
66-
include("pointwise_logdensities.jl")
67-
68-
include("lkj.jl")
69-
70-
include("debug_utils.jl")
71-
end
45+
@testset verbose = true "DynamicPPL.jl" begin
46+
if GROUP == "All" || GROUP == "Group1"
47+
include("utils.jl")
48+
include("compiler.jl")
49+
include("varnamedvector.jl")
50+
include("varinfo.jl")
51+
include("simple_varinfo.jl")
52+
include("model.jl")
53+
include("sampler.jl")
54+
include("independence.jl")
55+
include("distribution_wrappers.jl")
56+
include("logdensityfunction.jl")
57+
include("linking.jl")
58+
include("serialization.jl")
59+
include("pointwise_logdensities.jl")
60+
include("lkj.jl")
61+
end
7262

63+
if GROUP == "All" || GROUP == "Group2"
64+
include("contexts.jl")
65+
include("context_implementations.jl")
66+
include("threadsafe.jl")
67+
include("debug_utils.jl")
7368
@testset "compat" begin
7469
include(joinpath("compat", "ad.jl"))
7570
end
76-
7771
@testset "extensions" begin
7872
include("ext/DynamicPPLMCMCChainsExt.jl")
7973
include("ext/DynamicPPLJETExt.jl")
8074
end
81-
8275
@testset "ad" begin
8376
include("ext/DynamicPPLForwardDiffExt.jl")
8477
include("ext/DynamicPPLMooncakeExt.jl")
8578
include("ad.jl")
8679
end
87-
8880
@testset "prob and logprob macro" begin
8981
@test_throws ErrorException prob"..."
9082
@test_throws ErrorException logprob"..."
9183
end
92-
9384
@testset "doctests" begin
9485
DocMeta.setdocmeta!(
9586
DynamicPPL,

0 commit comments

Comments
 (0)