From 896a2ce953022ab42ffe7ca819648a9753448a30 Mon Sep 17 00:00:00 2001 From: Boris Arzentar Date: Tue, 6 Aug 2024 15:54:56 +0200 Subject: [PATCH] fix: add postgres service to tests --- .github/workflows/test_common.yml | 12 ++++++++++++ .github/workflows/test_qdrant.yml | 12 ++++++++++++ .github/workflows/test_weaviate.yml | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 23dc490f9..67ce30cf7 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -47,6 +47,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 + runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/test_qdrant.yml b/.github/workflows/test_qdrant.yml index 247460732..8d345362b 100644 --- a/.github/workflows/test_qdrant.yml +++ b/.github/workflows/test_qdrant.yml @@ -35,6 +35,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 diff --git a/.github/workflows/test_weaviate.yml b/.github/workflows/test_weaviate.yml index 4035390e8..d1092dc3b 100644 --- a/.github/workflows/test_weaviate.yml +++ b/.github/workflows/test_weaviate.yml @@ -35,6 +35,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