Add graph neighbor retrieval to Python API #232
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| tests: | |
| name: run-all-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup CMake | |
| uses: lukka/get-cmake@latest | |
| - name: Configure | |
| run: cmake -S . -B build -DPOMAI_BUILD_TESTS=ON -DPOMAI_BUILD_BENCH=OFF -DPOMAI_REGISTER_BENCH_CTEST=ON | |
| - name: Build | |
| run: cmake --build build --config Release --parallel | |
| - name: API Contract Check | |
| run: ./scripts/check_api_contract.sh | |
| # GitHub-hosted runners typically have no usable Vulkan ICD/GPU; GPU tests would flake or fail. | |
| # Set POMAI_SKIP_VULKAN_TESTS=0 locally or install mesa-vulkan-drivers (Lavapipe) to exercise Vulkan. | |
| - name: CTest | |
| env: | |
| POMAI_SKIP_VULKAN_TESTS: 1 | |
| run: ctest --test-dir build --output-on-failure -C Release --timeout 120 | |
| - name: CTest Bench (ci-fast) | |
| env: | |
| POMAI_SKIP_VULKAN_TESTS: 1 | |
| run: ctest --test-dir build -L bench --output-on-failure -C Release --timeout 600 | |
| - name: Perf Regression Gate | |
| env: | |
| POMAI_PERF_MAX_REGRESSION_PCT: 15 | |
| run: ./tools/perf_gate.sh --build-dir=build --dataset=small | |
| - name: Package ci-fast artifact | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| mkdir -p dist/include/pomai dist/lib | |
| cp build/pomaidb_server dist/ || true | |
| cp tools/pomaictl.py dist/pomaictl || true | |
| cp -r include/pomai/* dist/include/pomai/ | |
| cp build/libpomai.a dist/lib/ || true | |
| cp build/libpomai_c.so dist/lib/ || true | |
| cp LICENSE dist/ || true | |
| tar -czf pomaidb-ci-fast-linux-x64.tar.gz -C dist . | |
| sha256sum pomaidb-ci-fast-linux-x64.tar.gz > pomaidb-ci-fast-linux-x64.tar.gz.sha256 | |
| - name: Upload ci-fast artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pomaidb-ci-fast-linux-x64 | |
| path: | | |
| pomaidb-ci-fast-linux-x64.tar.gz | |
| pomaidb-ci-fast-linux-x64.tar.gz.sha256 |