-
Notifications
You must be signed in to change notification settings - Fork 121
feature: hBayesDM version 2.0 #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bugoverdose
merged 35 commits into
CCS-Lab:develop
from
Nathaniel-Haines:feature-cmdstan-version-2.0
May 20, 2026
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
574c28d
feature: hbayesdm 2.0 - cmdstan
Nathaniel-Haines 173ca2b
chore: untrack local planning notes
Nathaniel-Haines 18bb0b4
update vignettes
Nathaniel-Haines f5dbf7e
update ci/cd
Nathaniel-Haines 6cf073e
no macos ci/cd for now
Nathaniel-Haines 4270215
rm local .tool-versions file
Nathaniel-Haines 4523f89
fix docstrings and model docs
Nathaniel-Haines 1328b1d
r test fixes
Nathaniel-Haines c97d91c
more R test fixes
Nathaniel-Haines e11bd49
code cov tests together
Nathaniel-Haines 74e0e21
more r test fixes
Nathaniel-Haines 358a9f5
doc: fix typo in hgf tutorial blog
bugoverdose d864b33
Merge remote-tracking branch 'upstream/develop' into feature-cmdstan-…
Nathaniel-Haines b490262
developers.md doc
Nathaniel-Haines f4525a4
ci: add windows-latest to R and Python matrices
Nathaniel-Haines 85a465d
ci: also run R user-facing tests on Windows
Nathaniel-Haines 20470f7
ci: explicit install step + clearer test/coverage separation
Nathaniel-Haines 7a1dbff
full r docs build how-to
Nathaniel-Haines 44426fb
bandit model semi-colon fix
Nathaniel-Haines a64cf52
feat: add inits=0 and seed configuration (default=42)
bugoverdose ac290ee
add seed to LBA models
Nathaniel-Haines 1111469
rm tool-versions
Nathaniel-Haines 4434369
cap py versions to hedge breaking changes
Nathaniel-Haines b5b575f
bump arviz
Nathaniel-Haines e981188
canonicalize stan calls in dev docs
Nathaniel-Haines e0c188a
rerun roxygen
Nathaniel-Haines e978079
fix R CMD checks
Nathaniel-Haines 325fcc9
drop ci/cd smoke tests
Nathaniel-Haines cd4789a
pyyaml to dev dependencies, use uv for python calls
Nathaniel-Haines 86a517f
rm unneeded req file
Nathaniel-Haines a9b19c1
rm quickstart in favor of DEVELOPERS.md, fix linting issues
Nathaniel-Haines 0c5336b
fix codegen issues
Nathaniel-Haines fc9459d
add quickstart to DEVELOPERS.md
Nathaniel-Haines 34def72
fix ggplot deprecation warning
Nathaniel-Haines a3f53ea
camelCase -> snake_case for R, standardize input args
Nathaniel-Haines File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| name: Python | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master, develop] | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| pytest: | ||
| runs-on: ${{ matrix.os }} | ||
| name: ${{ matrix.os }} (Python ${{ matrix.python-version }}) | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest] | ||
| python-version: ["3.13"] | ||
|
|
||
| env: | ||
| CMDSTAN_VERSION: "2.36.0" | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: ./Python | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v4 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Set up Python | ||
| run: uv python install ${{ matrix.python-version }} | ||
|
|
||
| - name: Install dependencies | ||
| run: uv sync --all-groups | ||
|
|
||
| - name: Cache CmdStan | ||
| id: cmdstan-cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.cmdstan | ||
| key: cmdstan-${{ runner.os }}-${{ env.CMDSTAN_VERSION }} | ||
|
|
||
| - name: Install CmdStan | ||
| if: steps.cmdstan-cache.outputs.cache-hit != 'true' | ||
| shell: bash | ||
| run: | | ||
| uv run python -c "import cmdstanpy; cmdstanpy.install_cmdstan(version='${CMDSTAN_VERSION}', cores=2)" | ||
|
|
||
| - name: Lint | ||
| run: uv run ruff check hbayesdm | ||
| continue-on-error: true | ||
|
|
||
| - name: Run user-facing tests | ||
| run: uv run pytest tests/test_user_facing.py -v --reruns 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| name: R | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master, develop] | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| R-CMD-check: | ||
| runs-on: ${{ matrix.config.os }} | ||
| name: ${{ matrix.config.os }} (R ${{ matrix.config.r }}) | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| config: | ||
| - {os: ubuntu-latest, r: '4.4'} | ||
| - {os: windows-latest, r: '4.4'} | ||
|
|
||
| env: | ||
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
| R_KEEP_PKG_SOURCE: yes | ||
| CMDSTAN_VERSION: "2.36.0" | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: r-lib/actions/setup-pandoc@v2 | ||
|
|
||
| - uses: r-lib/actions/setup-r@v2 | ||
| with: | ||
| r-version: ${{ matrix.config.r }} | ||
| use-public-rspm: true | ||
|
|
||
| - uses: r-lib/actions/setup-r-dependencies@v2 | ||
| with: | ||
| working-directory: ./R | ||
| extra-packages: | | ||
| any::rcmdcheck | ||
| any::testthat | ||
| any::covr | ||
| stan-dev/cmdstanr | ||
| needs: check | ||
|
|
||
| - name: Cache CmdStan | ||
| id: cmdstan-cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.cmdstan | ||
| key: cmdstan-${{ runner.os }}-${{ env.CMDSTAN_VERSION }} | ||
|
|
||
| - name: Install CmdStan | ||
| if: steps.cmdstan-cache.outputs.cache-hit != 'true' | ||
| run: | | ||
| cmdstanr::check_cmdstan_toolchain(fix = TRUE, quiet = FALSE) | ||
| cmdstanr::install_cmdstan(version = Sys.getenv("CMDSTAN_VERSION"), cores = 2) | ||
| shell: Rscript {0} | ||
|
|
||
| - name: R CMD check | ||
| uses: r-lib/actions/check-r-package@v2 | ||
| with: | ||
| working-directory: ./R | ||
| args: 'c("--no-manual", "--as-cran", "--no-build-vignettes", "--no-tests", "--no-examples")' | ||
| error-on: '"warning"' | ||
|
|
||
| - name: Install hBayesDM | ||
| shell: bash | ||
| run: R CMD INSTALL R | ||
|
|
||
| - name: Run user-facing tests | ||
| env: | ||
| NOT_CRAN: "true" | ||
| TEST_FILE: ${{ github.workspace }}/R/tests/testthat/test_user_facing.R | ||
| run: | | ||
| Rscript -e "testthat::test_file(Sys.getenv('TEST_FILE'), reporter = 'progress')" | ||
|
|
||
| - name: Upload coverage to codecov | ||
| if: matrix.config.os == 'ubuntu-latest' | ||
| env: | ||
| NOT_CRAN: "true" | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
| TEST_FILE: ${{ github.workspace }}/R/tests/testthat/test_user_facing.R | ||
| run: | | ||
| Rscript -e "covr::codecov(path = 'R', quiet = FALSE, type = 'none', code = sprintf('testthat::test_file(\"%s\", reporter = \"progress\")', Sys.getenv('TEST_FILE')))" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was so needed. Thank you.