name: CI on: push: branches: [main, develop] pull_request: branches: [main] jobs: test-cpp: name: C++ Tests (${{ matrix.os }}) runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-22.04, ubuntu-24.04] steps: - uses: actions/checkout@v4 - name: Install dependencies run: | sudo apt-get update sudo apt-get install -y cmake g++ python3-dev - name: Configure run: | mkdir build && cd build cmake .. -DWAYY_BUILD_PYTHON=OFF -DWAYY_BUILD_TESTS=ON - name: Build run: cmake --build build -j$(nproc) - name: Test run: cd build && ctest --output-on-failure test-python: name: Python ${{ matrix.python-version }} runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install build dependencies run: | python -m pip install --upgrade pip pip install build pytest numpy - name: Build and install run: pip install -e . - name: Run tests run: pytest tests/python -v