Files
kinect/.github/workflows/ci.yml
T
kinect-bot 30f550e489
ci / Linux C++ core (cmake + ctest) (push) Canceled after 0s
ci / Python root tests (pytest, no tracker deps) (push) Canceled after 0s
ci / Python tracker (pytest, tracker/.venv) (push) Canceled after 0s
ci(test): import-guarded conftest + split root/tracker pytest jobs (follow-up 19 done)
2026-11-25 05:48:20 -05:00

53 lines
1.6 KiB
YAML

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
linux-core:
name: Linux C++ core (cmake + ctest)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install build tools
run: sudo apt-get update && sudo apt-get install -y cmake g++ ninja-build
- name: Configure
run: cmake -S . -B build/linux
- name: Build
run: cmake --build build/linux
- name: Test
run: ctest --test-dir build/linux --output-on-failure
python-root:
name: Python root tests (pytest, no tracker deps)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pytest
run: python -m pip install --upgrade pip pytest
- name: Run root-satisfiable pytest
# conftest.py skips tests/test_tracker.py here (needs numpy/cv2/mediapipe,
# only installed in tracker/.venv below); it collects fully there instead.
run: pytest -q
python-tracker:
name: Python tracker (pytest, tracker/.venv)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Create tracker venv and install deps
run: |
python -m venv tracker/.venv
tracker/.venv/bin/pip install --upgrade pip
tracker/.venv/bin/pip install pytest numpy opencv-python-headless mediapipe
- name: Run tracker pytest
run: tracker/.venv/bin/python -m pytest -q tests/