From 34da72f67a9361b796c7ad1fa0b9ece7a85e5b38 Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Fri, 4 Feb 2022 14:59:33 +0100 Subject: [PATCH] Switch to Turing 0.20 (#31) --- .github/workflows/CI.yml | 2 +- Project.toml | 2 +- test/turing_model.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3e5f5b4..e1546ce 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -49,7 +49,7 @@ jobs: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: - version: '1.6' + version: '1.7' - uses: julia-actions/cache@v1 - uses: julia-actions/julia-buildpkg@v1 - run: julia --project=docs -e ' diff --git a/Project.toml b/Project.toml index 272c7ca..f2f1e05 100644 --- a/Project.toml +++ b/Project.toml @@ -28,5 +28,5 @@ StatsBase = "0.33" StatsModels = "0.6.28" TableOperations = "1.2" Tables = "1.6" -Turing = "0.19" +Turing = "0.20" julia = "1.6" diff --git a/test/turing_model.jl b/test/turing_model.jl index 8c4d55d..301334d 100644 --- a/test/turing_model.jl +++ b/test/turing_model.jl @@ -134,6 +134,6 @@ @testset "NegativeBinomial2" begin @test T.NegativeBinomial2(0, 1) == T.NegativeBinomial(1, 1) @test T.NegativeBinomial2(2, 8) == T.NegativeBinomial(8, 0.8) - @test_throws ArgumentError T.NegativeBinomial2(0, -1) + @test_throws DomainError T.NegativeBinomial2(0, -1) end end