Skip to content

Commit 585baed

Browse files
committed
test(omp): run the native bridge tests in CI
1 parent 445ee20 commit 585baed

4 files changed

Lines changed: 418 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,33 @@ jobs:
7878
uv run --frozen graphify --help
7979
uv run --frozen graphify install
8080
81+
omp-bridge:
82+
# tests/omp.test.ts drives the real OMP extension: bun resolves the
83+
# path-utils helpers it imports from the pinned @oh-my-pi/pi-coding-agent
84+
# devDependency in graphify/omp/, and the policy assertions run against
85+
# the real installed Python CLI, so this job needs both toolchains.
86+
runs-on: ubuntu-latest
87+
steps:
88+
- uses: actions/checkout@v6
89+
90+
- name: Install uv
91+
uses: astral-sh/setup-uv@v8.1.0
92+
with:
93+
python-version: "3.12"
94+
95+
- name: Install bun
96+
uses: oven-sh/setup-bun@v2
97+
98+
- name: Install dependencies
99+
run: uv sync --frozen
100+
101+
- name: Install OMP extension dependencies
102+
run: bun install --frozen-lockfile
103+
working-directory: graphify/omp
104+
105+
- name: Run OMP bridge tests
106+
run: GRAPHIFY_TEST_CLI=$PWD/.venv/bin/graphify bun test tests/omp.test.ts
107+
81108
security-scan:
82109
# The dev deps include bandit and pip-audit. Run them in CI so a new
83110
# HIGH-severity finding or vulnerable dependency is caught on the PR that

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ paper/
4040

4141
# macOS Finder metadata
4242
.DS_Store
43+
44+
# OMP extension test dependency tree (graphify/omp)
45+
graphify/omp/node_modules/

0 commit comments

Comments
 (0)