Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
35 lines
855 B
YAML
35 lines
855 B
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-tracker:
|
|
name: Python tracker (pytest)
|
|
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 pytest
|
|
run: pytest -q
|