forked from CodeGraphContext/CodeGraphContext
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.34 KB
/
Copy pathdb-parity-check.yml
File metadata and controls
59 lines (51 loc) · 1.34 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
name: Database Parity Check
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
db-parity:
runs-on: ubuntu-latest
services:
neo4j:
image: neo4j:5.12.0-community
ports:
- 7687:7687
- 7474:7474
env:
NEO4J_AUTH: neo4j/12345678
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "tree-sitter==0.25.2" "tree-sitter-language-pack==0.13.0"
pip install .[dev]
- name: Wait for Neo4j
run: |
echo "Waiting for Neo4j service container..."
for i in {1..30}; do
if curl -s http://localhost:7474 > /dev/null; then
echo "Neo4j is up!"
exit 0
fi
sleep 2
done
echo "Timed out waiting for Neo4j"
exit 1
- name: Run E2E Database Parity Verification
env:
NEO4J_URI: bolt://localhost:7687
NEO4J_USERNAME: neo4j
NEO4J_PASSWORD: 12345678
run: |
pytest tests/e2e/test_verify_databases_parity.py -v -s