Skip to content
Merged
Show file tree
Hide file tree
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 May 4, 2026
173ca2b
chore: untrack local planning notes
Nathaniel-Haines May 4, 2026
18bb0b4
update vignettes
Nathaniel-Haines May 4, 2026
f5dbf7e
update ci/cd
Nathaniel-Haines May 4, 2026
6cf073e
no macos ci/cd for now
Nathaniel-Haines May 4, 2026
4270215
rm local .tool-versions file
Nathaniel-Haines May 4, 2026
4523f89
fix docstrings and model docs
Nathaniel-Haines May 4, 2026
1328b1d
r test fixes
Nathaniel-Haines May 4, 2026
c97d91c
more R test fixes
Nathaniel-Haines May 4, 2026
e11bd49
code cov tests together
Nathaniel-Haines May 4, 2026
74e0e21
more r test fixes
Nathaniel-Haines May 4, 2026
358a9f5
doc: fix typo in hgf tutorial blog
bugoverdose Jan 5, 2026
d864b33
Merge remote-tracking branch 'upstream/develop' into feature-cmdstan-…
Nathaniel-Haines May 5, 2026
b490262
developers.md doc
Nathaniel-Haines May 5, 2026
f4525a4
ci: add windows-latest to R and Python matrices
Nathaniel-Haines May 5, 2026
85a465d
ci: also run R user-facing tests on Windows
Nathaniel-Haines May 5, 2026
20470f7
ci: explicit install step + clearer test/coverage separation
Nathaniel-Haines May 5, 2026
7a1dbff
full r docs build how-to
Nathaniel-Haines May 6, 2026
44426fb
bandit model semi-colon fix
Nathaniel-Haines May 6, 2026
a64cf52
feat: add inits=0 and seed configuration (default=42)
bugoverdose Mar 9, 2026
ac290ee
add seed to LBA models
Nathaniel-Haines May 6, 2026
1111469
rm tool-versions
Nathaniel-Haines May 6, 2026
4434369
cap py versions to hedge breaking changes
Nathaniel-Haines May 6, 2026
b5b575f
bump arviz
Nathaniel-Haines May 6, 2026
e981188
canonicalize stan calls in dev docs
Nathaniel-Haines May 6, 2026
e0c188a
rerun roxygen
Nathaniel-Haines May 6, 2026
e978079
fix R CMD checks
Nathaniel-Haines May 6, 2026
325fcc9
drop ci/cd smoke tests
Nathaniel-Haines May 6, 2026
cd4789a
pyyaml to dev dependencies, use uv for python calls
Nathaniel-Haines May 10, 2026
86a517f
rm unneeded req file
Nathaniel-Haines May 10, 2026
a9b19c1
rm quickstart in favor of DEVELOPERS.md, fix linting issues
Nathaniel-Haines May 14, 2026
0c5336b
fix codegen issues
Nathaniel-Haines May 14, 2026
fc9459d
add quickstart to DEVELOPERS.md
Nathaniel-Haines May 14, 2026
34def72
fix ggplot deprecation warning
Nathaniel-Haines May 14, 2026
a3f53ea
camelCase -> snake_case for R, standardize input args
Nathaniel-Haines May 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
62 changes: 62 additions & 0 deletions .github/workflows/Python.yaml
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
88 changes: 88 additions & 0 deletions .github/workflows/R.yaml
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')))"
38 changes: 19 additions & 19 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,38 @@ jobs:

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
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: '4.4'
use-public-rspm: true

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

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), "../.github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), "../.github/R-version")
shell: Rscript {0}
working-directory: ./R

- name: Cache R packages
if: runner.os != 'Windows'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: ./R
extra-packages: |
any::pkgdown
stan-dev/cmdstanr
needs: website

- name: Cache CmdStan
id: cmdstan-cache
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('**/.github/R-version') }}-1-${{ hashFiles('**/.github/depends.Rds') }}
path: ~/.cmdstan
key: cmdstan-${{ runner.os }}-${{ env.CMDSTAN_VERSION }}

- name: Install dependencies
- name: Install CmdStan
if: steps.cmdstan-cache.outputs.cache-hit != 'true'
run: |
install.packages("remotes")
remotes::install_deps(dependencies = TRUE)
install.packages("pkgdown", type = "binary", quiet = TRUE)
cmdstanr::install_cmdstan(version = Sys.getenv("CMDSTAN_VERSION"), cores = 2)
shell: Rscript {0}
working-directory: ./R

- name: Install package
run: R CMD INSTALL .
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,6 @@ CRAN-RELEASE
Python/.idea
Python/hbayesdm/version.py

# compiled stan objects
commons/stan_files/*
!commons/stan_files/*.stan
Comment on lines +359 to +361
Copy link
Copy Markdown
Member

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.

11 changes: 6 additions & 5 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
build:
os: ubuntu-22.04
tools:
python: "3.13"

sphinx:
configuration: Python/docs/conf.py

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: Python/requirements.txt
- requirements: Python/docs/requirements.txt
- method: pip
path: ./Python
72 changes: 0 additions & 72 deletions .travis.yml

This file was deleted.

Loading
Loading