From a0b1847e6ec80db16f9ec89bf1e85bae87a7ac8a Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Mon, 7 Oct 2024 13:21:51 +0100 Subject: [PATCH] Remove `error: true` from config (#529) * Remove `error: true` from config * Try caching dependencies * Cache in preview workflow too * Try a no-op commit --- .github/workflows/preview.yml | 3 +++ .github/workflows/publish.yml | 3 +++ _quarto.yml | 1 + tutorials/_metadata.yml | 3 +-- tutorials/docs-17-implementing-samplers/index.qmd | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index de88eee84..bc2e3cb5d 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -25,6 +25,9 @@ jobs: with: version: '1.10' + - name: Load Julia packages from cache + uses: julia-actions/cache@v2 + # Note: needs resolve() to fix #518 - name: Instantiate Julia environment run: julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 94b107e10..3e8ffded9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,6 +24,9 @@ jobs: with: version: '1.10' + - name: Load Julia packages from cache + uses: julia-actions/cache@v2 + # Note: needs resolve() to fix #518 - name: Instantiate Julia environment run: julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()' diff --git a/_quarto.yml b/_quarto.yml index 374d080a5..354fa9269 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -5,6 +5,7 @@ project: port: 4200 browser: true + # These cannot be used as variables. They are reserved for the project configuration. website: title: "Turing.jl" diff --git a/tutorials/_metadata.yml b/tutorials/_metadata.yml index 28fab4116..bfb360691 100755 --- a/tutorials/_metadata.yml +++ b/tutorials/_metadata.yml @@ -6,7 +6,6 @@ format: execute: echo: true output: true - error: true include-in-header: - text: | \ No newline at end of file + diff --git a/tutorials/docs-17-implementing-samplers/index.qmd b/tutorials/docs-17-implementing-samplers/index.qmd index 339e54870..5c3aee618 100644 --- a/tutorials/docs-17-implementing-samplers/index.qmd +++ b/tutorials/docs-17-implementing-samplers/index.qmd @@ -448,6 +448,7 @@ logpdf(Beta(3, 3), 10.0) and so the samples that fall outside of the range are always rejected. But do notice how much worse all the diagnostics are, e.g. `ess_tail` is very poor compared to when we use `unconstrained=true`. Moreover, in more complex cases this won't just result in a "nice" `-Inf` log-density value, but instead will error: ```{julia} +#| error: true @model function demo() σ² ~ truncated(Normal(), lower=0) # If we end up with negative values for `σ²`, the `Normal` will error.