-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (58 loc) · 1.99 KB
/
Copy pathci.yml
File metadata and controls
67 lines (58 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
- uses: actions/setup-node@v6
with:
node-version: "22"
- name: Install dependencies
# Sync all-extras to run graspologic + hdbscan cluster engine tests
run: uv sync --all-extras
- name: Run tests
env:
NEO4J_URI: "bolt://localhost:7687"
NEO4J_USER: "neo4j"
NEO4J_PASSWORD: "fakepassword"
GEMINI_API_KEY: "dummy"
# Mirror the publish.yml test exclusions for offline runner
run: |
uv run pytest tests/ -v \
--ignore=tests/test_corroboration.py \
--ignore=tests/test_bidirectional.py \
--ignore=tests/test_mcp_queries_integration.py \
--ignore=tests/test_http_transport.py \
--ignore=tests/test_phase1_e2e.py \
--ignore=tests/test_phase2_e2e.py \
--ignore=tests/test_pipeline_e2e.py \
-m "not integration"
- name: Validate release metadata and npm package
shell: bash
run: |
python - <<'PY'
import json
import tomllib
from pathlib import Path
py_version = tomllib.loads(Path("pyproject.toml").read_text())["project"]["version"]
npm_version = json.loads(Path("npm/package.json").read_text())["version"]
server = json.loads(Path("server.json").read_text())
versions = [py_version, npm_version, server["version"], *(p["version"] for p in server["packages"])]
if len(set(versions)) != 1:
raise SystemExit(f"release version mismatch: {versions}")
print(f"release version: {py_version}")
PY
(cd npm && npm pack --dry-run --json >/dev/null)