Skip to content

Commit a0b1847

Browse files
authored
Remove error: true from config (#529)
* Remove `error: true` from config * Try caching dependencies * Cache in preview workflow too * Try a no-op commit
1 parent d473998 commit a0b1847

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

.github/workflows/preview.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
with:
2626
version: '1.10'
2727

28+
- name: Load Julia packages from cache
29+
uses: julia-actions/cache@v2
30+
2831
# Note: needs resolve() to fix #518
2932
- name: Instantiate Julia environment
3033
run: julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()'

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
with:
2525
version: '1.10'
2626

27+
- name: Load Julia packages from cache
28+
uses: julia-actions/cache@v2
29+
2730
# Note: needs resolve() to fix #518
2831
- name: Instantiate Julia environment
2932
run: julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()'

_quarto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ project:
55
port: 4200
66
browser: true
77

8+
89
# These cannot be used as variables. They are reserved for the project configuration.
910
website:
1011
title: "Turing.jl"

tutorials/_metadata.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ format:
66
execute:
77
echo: true
88
output: true
9-
error: true
109
include-in-header:
1110
- text: |
1211
<style>
@@ -16,4 +15,4 @@ include-in-header:
1615
a:hover {
1716
text-decoration: underline;
1817
}
19-
</style>
18+
</style>

tutorials/docs-17-implementing-samplers/index.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ logpdf(Beta(3, 3), 10.0)
448448
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:
449449

450450
```{julia}
451+
#| error: true
451452
@model function demo()
452453
σ² ~ truncated(Normal(), lower=0)
453454
# If we end up with negative values for `σ²`, the `Normal` will error.

0 commit comments

Comments
 (0)