Skip to content

Commit c9da8ad

Browse files
Merge branch 'master' into fix/clarify-print-dims-198
2 parents 09d56b2 + 88f63b5 commit c9da8ad

69 files changed

Lines changed: 2929 additions & 360 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ vignettes/loo2-non-factorized_cache/*
2424
^release-prep\.R$
2525
^_pkgdown\.yml$
2626
^pkgdown$
27+
^touchstone$
28+
^.git-blame-ignore-revs
29+
^notes-release.md

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# swap to lf
2+
cb64cf13afe42e91b5391fc8acd90fba3b726a70
3+
53ecde47fd2c4815e7a339983571dc8dd90208af
4+
2a916b1e1c349d54fa60a9ba17f83242e7b9930a
5+
6+
# .gitattributes junk commits
7+
62be68d65f7ba5c2641956ce94472a2747a20856
8+
ec6080c85010d61f077291e4cb02e9fbbc9c9a92

.gitattributes

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
* text=auto
22
data/* binary
3-
src/* text=lf
4-
R/* text=lf
3+
src/* text eol=lf
4+
R/* text eol=lf
5+
*.rda binary
6+

.github/CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ new to you.
5454
Please note that the loo project follows the Stan project's
5555
[Code of Conduct](https://discourse.mc-stan.org/t/announcing-our-new-stan-code-of-conduct/23764).
5656
By contributing to this project you agree to abide by its terms.
57+
58+
All contributions must follow the [Stan AI Contribution Policy](https://github.com/stan-dev/stan/wiki/AI-Contribution-Policy).

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
R_KEEP_PKG_SOURCE: yes
3131

3232
steps:
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@v7
3434

3535
- uses: r-lib/actions/setup-pandoc@v2
3636

.github/workflows/pkgdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
permissions:
2424
contents: write
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@v7
2727

2828
- uses: r-lib/actions/setup-pandoc@v2
2929

.github/workflows/test-coverage.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77

88
name: test-coverage.yaml
99

10-
permissions: read-all
10+
permissions:
11+
contents: read
12+
id-token: write
1113

1214
jobs:
1315
test-coverage:
@@ -16,7 +18,7 @@ jobs:
1618
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1719

1820
steps:
19-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v7
2022

2123
- uses: r-lib/actions/setup-r@v2
2224
with:
@@ -38,14 +40,14 @@ jobs:
3840
covr::to_cobertura(cov)
3941
shell: Rscript {0}
4042

41-
- uses: codecov/codecov-action@v5
43+
- uses: codecov/codecov-action@v7
4244
with:
43-
# Fail if error if not on PR, or if on PR and token is given
45+
# Fail if error if not on PR, or if on PR and token is given--dependabot is treated like fork
4446
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
4547
files: ./cobertura.xml
4648
plugins: noop
4749
disable_search: true
48-
token: ${{ secrets.CODECOV_TOKEN }}
50+
use_oidc: true
4951

5052
- name: Show testthat output
5153
if: always()
@@ -56,7 +58,7 @@ jobs:
5658

5759
- name: Upload test results
5860
if: failure()
59-
uses: actions/upload-artifact@v4
61+
uses: actions/upload-artifact@v7
6062
with:
6163
name: coverage-test-failures
6264
path: ${{ runner.temp }}/package
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Continuous Benchmarks (Comment)
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.run_id }}
5+
cancel-in-progress: true
6+
7+
on:
8+
workflow_run:
9+
workflows: ["Continuous Benchmarks (Receive)"]
10+
types: [completed]
11+
12+
jobs:
13+
comment:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
pull-requests: write
18+
if: ${{ github.event.workflow_run.event == 'pull_request' }}
19+
steps:
20+
- name: Download Touchstone comment artifact
21+
id: download_comment
22+
uses: actions/download-artifact@v8
23+
with:
24+
name: pr
25+
path: ./pr
26+
github-token: ${{ github.token }}
27+
repository: ${{ github.repository }}
28+
run-id: ${{ github.event.workflow_run.id }}
29+
30+
# defensive since issues could cause commenting in random places
31+
- name: Read PR number
32+
id: pr
33+
shell: bash
34+
run: |
35+
number="$(tr -cd '0-9' < ./pr/NR)"
36+
test -n "$number"
37+
echo "number=$number" >> "$GITHUB_OUTPUT"
38+
39+
- name: Create or update sticky PR comment
40+
id: comment
41+
uses: marocchino/sticky-pull-request-comment@v3
42+
with:
43+
GITHUB_TOKEN: ${{ github.token }}
44+
number_force: ${{ steps.pr.outputs.number }}
45+
header: touchstone
46+
path: ./pr/info.txt
47+
skip_unchanged: true
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Continuous Benchmarks (Receive)
2+
3+
permissions:
4+
contents: read
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
8+
cancel-in-progress: true
9+
10+
on:
11+
pull_request:
12+
13+
jobs:
14+
prepare:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
config: ${{ steps.read_touchstone_config.outputs.config }}
18+
steps:
19+
- name: Checkout repo
20+
uses: actions/checkout@v7
21+
with:
22+
fetch-depth: 0
23+
24+
- id: read_touchstone_config
25+
shell: bash
26+
run: |
27+
echo "config=$(jq -c . ./touchstone/config.json)" >> "$GITHUB_OUTPUT"
28+
29+
build:
30+
needs: prepare
31+
runs-on: ${{ matrix.config.os }}
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
config:
36+
- ${{ fromJson(needs.prepare.outputs.config) }}
37+
env:
38+
RSPM: ${{ matrix.config.rspm }}
39+
steps:
40+
- uses: lorenzwalthert/touchstone/actions/receive@main
41+
with:
42+
r-version: ${{ matrix.config.r }}
43+
touchstone_ref: "@main"

CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 2.9.0
2-
Date: 2025-12-22 18:21:47 UTC
3-
SHA: fd95b46e4868019ff05034384f28f12960f69f33
1+
Version: 2.10.0
2+
Date: 2026-06-24 16:20:40 UTC
3+
SHA: 1d6f5859ddf8792ce01d4a8f259c88d247b4ebb9

0 commit comments

Comments
 (0)