Fix to neo4j flow
This commit is contained in:
parent
6035010036
commit
73dd6c26b8
1 changed files with 24 additions and 0 deletions
24
.github/workflows/test_neo4j.yml
vendored
24
.github/workflows/test_neo4j.yml
vendored
|
|
@ -28,6 +28,18 @@ jobs:
|
|||
run:
|
||||
shell: bash
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
env:
|
||||
POSTGRES_USER: cognee
|
||||
POSTGRES_PASSWORD: cognee
|
||||
POSTGRES_DB: cognee_db
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 5432:5432
|
||||
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v2
|
||||
|
|
@ -44,6 +56,13 @@ jobs:
|
|||
virtualenvs-in-project: true
|
||||
installer-parallel: true
|
||||
|
||||
- name: Wait for PostgreSQL to be ready
|
||||
run: |
|
||||
echo "Waiting for PostgreSQL to be ready..."
|
||||
until pg_isready -h localhost -p 5432 -U cognee; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
- name: Install dependencies
|
||||
run: poetry install --no-interaction
|
||||
|
||||
|
|
@ -60,4 +79,9 @@ jobs:
|
|||
GRAPH_DATABASE_PASSWORD: ${{ secrets.NEO4J_API_KEY }}
|
||||
GRAPH_DATABASE_USERNAME: "neo4j"
|
||||
ENV: 'dev'
|
||||
POSTGRES_USER: cognee
|
||||
POSTGRES_PASSWORD: cognee
|
||||
POSTGRES_DB: cognee_db
|
||||
POSTGRES_HOST: localhost
|
||||
POSTGRES_PORT: 5432
|
||||
run: poetry run python ./cognee/tests/test_neo4j.py
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue