File tree 2 files changed +16
-9
lines changed
2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ permissions:
14
14
jobs :
15
15
test :
16
16
runs-on : ubuntu-latest
17
+
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
21
+ test_group :
22
+ - Group1
23
+ - Group2
24
+
17
25
steps :
18
26
- uses : actions/checkout@v4
19
27
- uses : julia-actions/setup-julia@v2
22
30
- uses : julia-actions/cache@v2
23
31
- uses : julia-actions/julia-buildpkg@v1
24
32
- uses : julia-actions/julia-runtest@v1
33
+ env :
34
+ GROUP : ${{ matrix.test_group }}
35
+ IS_PRERELEASE : " true"
Original file line number Diff line number Diff line change @@ -33,23 +33,19 @@ using OrderedCollections: OrderedSet
33
33
34
34
using DynamicPPL: getargs_dottilde, getargs_tilde
35
35
36
+ # These flags are set in CI
36
37
const GROUP = get (ENV , " GROUP" , " All" )
37
38
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"
47
40
48
41
if ! IS_PRERELEASE
49
42
Pkg. add (" Mooncake" )
50
43
using Mooncake: Mooncake
51
44
end
52
45
46
+ Random. seed! (100 )
47
+ include (" test_util.jl" )
48
+
53
49
@testset verbose = true " DynamicPPL.jl" begin
54
50
# The tests are split into two groups so that CI can run in parallel. The
55
51
# groups are chosen to make both groups take roughly the same amount of
You can’t perform that action at this time.
0 commit comments