29 lines
840 B
YAML
29 lines
840 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ces-ci
|
|
env:
|
|
CUDA_VISIBLE_DEVICES: ""
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: true
|
|
- name: Reuse runner PyTorch and install lightweight dependencies
|
|
run: |
|
|
uv venv --system-site-packages --python python .venv-ci
|
|
uv pip install --python .venv-ci/bin/python numpy pillow pyyaml scipy pytest ruff
|
|
- name: Lint
|
|
run: .venv-ci/bin/ruff check .
|
|
- name: Unit tests
|
|
run: .venv-ci/bin/pytest
|
|
- name: End-to-end CPU smoke test
|
|
run: |
|
|
.venv-ci/bin/python -m data.build_splits --config configs/mvp.yaml --small
|
|
.venv-ci/bin/python train_extractor.py --config configs/mvp.yaml --backbone tiny --epochs 1
|