name: CI on: push: pull_request: jobs: test: runs-on: ces-ci env: CUDA_VISIBLE_DEVICES: "" steps: - name: Checkout from Gitea run: | git init . git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" git fetch --depth 1 origin "$GITHUB_SHA" git checkout --detach FETCH_HEAD - name: Reuse runner PyTorch and install lightweight dependencies run: | python -m venv --system-site-packages .venv-ci .venv-ci/bin/python -m pip install numpy pillow pyyaml pytest ruff - name: Lint run: .venv-ci/bin/ruff check . - name: Unit tests run: .venv-ci/bin/python -m 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 .venv-ci/bin/python -m eval.benchmark_extractor --config configs/mvp.yaml --checkpoint artifacts/tiny/best.pt --backbone tiny --output artifacts/tiny/benchmark.json