Skip to content

Commit d6e9c83

Browse files
committed
Split prerelease CI into two groups like the rest
1 parent dda204d commit d6e9c83

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

.github/workflows/JuliaPre.yml

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ permissions:
1414
jobs:
1515
test:
1616
runs-on: ubuntu-latest
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
test_group:
22+
- Group1
23+
- Group2
24+
1725
steps:
1826
- uses: actions/checkout@v4
1927
- uses: julia-actions/setup-julia@v2
@@ -22,3 +30,6 @@ jobs:
2230
- uses: julia-actions/cache@v2
2331
- uses: julia-actions/julia-buildpkg@v1
2432
- uses: julia-actions/julia-runtest@v1
33+
env:
34+
GROUP: ${{ matrix.test_group }}
35+
IS_PRERELEASE: "true"

test/runtests.jl

+5-9
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,19 @@ using OrderedCollections: OrderedSet
3333

3434
using DynamicPPL: getargs_dottilde, getargs_tilde
3535

36+
# These flags are set in CI
3637
const GROUP = get(ENV, "GROUP", "All")
3738
const AQUA = get(ENV, "AQUA", "true") == "true"
38-
Random.seed!(100)
39-
40-
include("test_util.jl")
41-
42-
# Don't attempt to import Mooncake on 1.12
43-
# https://github.com/chalk-lab/Mooncake.jl/pull/545
44-
# the check against v"1.12-" includes prerelease versions,
45-
# whereas >=v"1.12" would only catch 1.12.0 onwards
46-
IS_PRERELEASE = VERSION >= v"1.12-"
39+
const IS_PRERELEASE = get(ENV, "IS_PRERELEASE", "false") == "true"
4740

4841
if !IS_PRERELEASE
4942
Pkg.add("Mooncake")
5043
using Mooncake: Mooncake
5144
end
5245

46+
Random.seed!(100)
47+
include("test_util.jl")
48+
5349
@testset verbose = true "DynamicPPL.jl" begin
5450
# The tests are split into two groups so that CI can run in parallel. The
5551
# groups are chosen to make both groups take roughly the same amount of

0 commit comments

Comments
 (0)