Skip to content

Reorganize repository to use uv. #8

Reorganize repository to use uv.

Reorganize repository to use uv. #8

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches: ["main"]
workflow_dispatch:
env:
cmdstanVersion: "2.36.0"
jobs:
build:
name: Continuous Integration
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: uv.lock
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Install project
run: uv sync --all-groups
- name: Cache cmdstan
uses: actions/cache@v4
with:
path: /home/runner/.cmdstan
key: cmdstan-${{ env.cmdstanVersion }}
- name: Install cmdstan
run: uv run python -m cmdstanpy.install_cmdstan --version ${{ env.cmdstanVersion }}
- name: Lint the code
run: true
- name: Run test_infer_mdn_tree separately
run: uv run pytest tests/scripts/test_infer_mdn_tree.py --cov=summaries --cov-report=term-missing
- name: Run all other tests
run: uv run pytest --cov=summaries --cov-report=term-missing --cov-fail-under=100 --cov-append --ignore=tests/scripts/test_infer_mdn_tree.py