Skip to content

Commit 2eab753

Browse files
authored
Run tests on Julia 1.6 (#1577)
1 parent bffc8be commit 2eab753

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

.github/workflows/Documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Julia
1616
uses: julia-actions/setup-julia@v1
1717
with:
18-
version: '1.5'
18+
version: '1'
1919
- name: Set up Ruby 2.6
2020
uses: actions/setup-ruby@v1
2121
with:

.github/workflows/DynamicHMC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
matrix:
1414
version:
1515
- '1.3'
16-
- '1.5'
16+
- '1'
1717
os:
1818
- ubuntu-latest
1919
arch:

.github/workflows/Numerical.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
matrix:
1414
version:
1515
- '1.3'
16-
- '1.5'
16+
- '1'
1717
os:
1818
- ubuntu-latest
1919
arch:

.github/workflows/StanCI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
matrix:
1414
version:
1515
- '1.3'
16-
- '1.5'
16+
- '1'
1717
os:
1818
- ubuntu-latest
1919
arch:

.github/workflows/TuringCI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
version:
1616
- '1.3'
17-
- '1.5'
17+
- '1'
1818
os:
1919
- ubuntu-latest
2020
- macOS-latest

test/inference/Inference.jl

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,23 @@
88

99
# multithreaded sampling with PG causes segfaults on Julia 1.5.4
1010
# https://github.com/TuringLang/Turing.jl/issues/1571
11-
samplers = (HMC(0.1, 7),
12-
#PG(10),
13-
IS(),
14-
MH(),
15-
#Gibbs(PG(3, :s), HMC(0.4, 8, :m)),
16-
Gibbs(HMC(0.1, 5, :s), ESS(:m)))
11+
samplers = @static if VERSION <= v"1.5.3" || VERSION >= v"1.6.0"
12+
(
13+
HMC(0.1, 7),
14+
PG(10),
15+
IS(),
16+
MH(),
17+
Gibbs(PG(3, :s), HMC(0.4, 8, :m)),
18+
Gibbs(HMC(0.1, 5, :s), ESS(:m)),
19+
)
20+
else
21+
(
22+
HMC(0.1, 7),
23+
IS(),
24+
MH(),
25+
Gibbs(HMC(0.1, 5, :s), ESS(:m)),
26+
)
27+
end
1728
for sampler in samplers
1829
Random.seed!(5)
1930
chain1 = sample(model, sampler, MCMCThreads(), 1000, 4)

0 commit comments

Comments
 (0)