Skip to content

Update build infra; better testing with minimal deps; ruff format #20

Update build infra; better testing with minimal deps; ruff format

Update build infra; better testing with minimal deps; ruff format #20

Workflow file for this run

name: Coverage
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
runs-on: ubuntu-latest
env:
FORCE_COLOR: true
UV_SYSTEM_PYTHON: 1
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: |
uv pip install --group=test . "scikit-learn<1.8.0"
- name: Run tests with coverage
run: |
pytest --cov --cov-report=xml --verbose
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true