Skip to content

DISCLAIMER CHANGED

DISCLAIMER CHANGED #27

Workflow file for this run

name: Simple CI
on:
pull_request:
branches: [main, master, develop]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Initialize submodules (fallback)
run: |
git submodule update --init --recursive
- name: Verify pybind11 submodule
run: |
ls -la extern/pybind11/CMakeLists.txt || echo "pybind11 CMakeLists.txt not found"
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
libomp-dev
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install basic Python dependencies
run: |
python -m pip install --upgrade pip
pip install numpy
- name: Create build directory
run: mkdir -p build
- name: Configure CMake (minimal configuration)
run: |
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_ODYSSEY=OFF \
-DBUILD_SING=OFF \
-DBUILD_PYTHON=OFF \
-DBUILD_BENCHMARK=OFF \
-DBUILD_DEMO=OFF \
-DBUILD_TESTS=ON
- name: Build project
run: |
cd build
make -j$(nproc)
- name: Run tests
run: |
cd build
ctest --output-on-failure --verbose
- name: List and run test executables directly
if: failure()
run: |
cd build/tests
echo "Available test executables:"
ls -la test_* 2>/dev/null || echo "No test executables found"
# Run each test executable if they exist
for test_exe in test_*; do
if [ -x "$test_exe" ]; then
echo "Running $test_exe"
./$test_exe || echo "Test $test_exe failed but continuing..."
fi
done