Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test CompRiskReg with R
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-python-only:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e ".[test]"
- run: pytest -m "not requires_r"

test-with-r:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: r-lib/actions/setup-r@v2
with:
r-version: "release"
- name: Install R cmprsk
run: Rscript -e "install.packages('cmprsk', repos='https://cloud.r-project.org')"
- run: pip install -e ".[test]"
- run: pytest -m "requires_r"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,5 @@ cython_debug/
marimo/_static/
marimo/_lsp/
__marimo__/
uv.lock
.DS_store
5 changes: 5 additions & 0 deletions CompRiskReg/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .crr import crr
from .cuminc import cuminc, timepoints

__all__ = ["crr", "timepoints", "cuminc"]
__version__ = "1.0.0"
Loading