Skip to content

fix: pipeline _generate_predictions should not require torch #4

fix: pipeline _generate_predictions should not require torch

fix: pipeline _generate_predictions should not require torch #4

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install (dev extras only — train/export need GPU + system deps)
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run pytest
run: PYTHONPATH=src python -m pytest tests/ -v
- name: Lint (ruff)
run: ruff check src tests
- name: Type check (mypy)
run: mypy src || true # non-blocking until types are fully clean
smoke-cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install -e ".[dev]"
- name: CLI smoke test
run: |
PYTHONPATH=src python -m src.cli list
test "$(PYTHONPATH=src python -m src.cli list | jq 'length')" -ge 3