feat: adds different python versions to the search db test run
This commit is contained in:
parent
46ddd4fd12
commit
151db6d29a
1 changed files with 29 additions and 9 deletions
38
.github/workflows/search_db_tests.yml
vendored
38
.github/workflows/search_db_tests.yml
vendored
|
|
@ -11,12 +11,21 @@ on:
|
||||||
type: string
|
type: string
|
||||||
default: "all"
|
default: "all"
|
||||||
description: "Which vector databases to test (comma-separated list or 'all')"
|
description: "Which vector databases to test (comma-separated list or 'all')"
|
||||||
|
python-versions:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: '["3.10", "3.11", "3.12", "3.13"]'
|
||||||
|
description: "Python versions to test (JSON array)"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-kuzu-lance-sqlite-search-tests:
|
run-kuzu-lance-sqlite-search-tests:
|
||||||
name: Search test for Kuzu/LanceDB/Sqlite
|
name: Search test for Kuzu/LanceDB/Sqlite (Python ${{ matrix.python-version }})
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: ${{ inputs.databases == 'all' || contains(inputs.databases, 'kuzu/lance/sqlite') }}
|
if: ${{ inputs.databases == 'all' || contains(inputs.databases, 'kuzu/lance/sqlite') }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: ${{ fromJSON(inputs.python-versions) }}
|
||||||
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -26,7 +35,7 @@ jobs:
|
||||||
- name: Cognee Setup
|
- name: Cognee Setup
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Dependencies already installed
|
- name: Dependencies already installed
|
||||||
run: echo "Dependencies already installed in setup"
|
run: echo "Dependencies already installed in setup"
|
||||||
|
|
@ -48,10 +57,13 @@ jobs:
|
||||||
run: uv run python ./cognee/tests/test_search_db.py
|
run: uv run python ./cognee/tests/test_search_db.py
|
||||||
|
|
||||||
run-neo4j-lance-sqlite-search-tests:
|
run-neo4j-lance-sqlite-search-tests:
|
||||||
name: Search test for Neo4j/LanceDB/Sqlite
|
name: Search test for Neo4j/LanceDB/Sqlite (Python ${{ matrix.python-version }})
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: ${{ inputs.databases == 'all' || contains(inputs.databases, 'neo4j/lance/sqlite') }}
|
if: ${{ inputs.databases == 'all' || contains(inputs.databases, 'neo4j/lance/sqlite') }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: ${{ fromJSON(inputs.python-versions) }}
|
||||||
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -61,7 +73,7 @@ jobs:
|
||||||
- name: Cognee Setup
|
- name: Cognee Setup
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Setup Neo4j with GDS
|
- name: Setup Neo4j with GDS
|
||||||
uses: ./.github/actions/setup_neo4j
|
uses: ./.github/actions/setup_neo4j
|
||||||
|
|
@ -91,9 +103,13 @@ jobs:
|
||||||
run: uv run python ./cognee/tests/test_search_db.py
|
run: uv run python ./cognee/tests/test_search_db.py
|
||||||
|
|
||||||
run-kuzu-pgvector-postgres-search-tests:
|
run-kuzu-pgvector-postgres-search-tests:
|
||||||
name: Search test for Kuzu/PGVector/Postgres
|
name: Search test for Kuzu/PGVector/Postgres (Python ${{ matrix.python-version }})
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: ${{ inputs.databases == 'all' || contains(inputs.databases, 'kuzu/pgvector/postgres') }}
|
if: ${{ inputs.databases == 'all' || contains(inputs.databases, 'kuzu/pgvector/postgres') }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: ${{ fromJSON(inputs.python-versions) }}
|
||||||
|
fail-fast: false
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: pgvector/pgvector:pg17
|
image: pgvector/pgvector:pg17
|
||||||
|
|
@ -117,7 +133,7 @@ jobs:
|
||||||
- name: Cognee Setup
|
- name: Cognee Setup
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
extra-dependencies: "postgres"
|
extra-dependencies: "postgres"
|
||||||
|
|
||||||
- name: Dependencies already installed
|
- name: Dependencies already installed
|
||||||
|
|
@ -146,9 +162,13 @@ jobs:
|
||||||
run: uv run python ./cognee/tests/test_search_db.py
|
run: uv run python ./cognee/tests/test_search_db.py
|
||||||
|
|
||||||
run-neo4j-pgvector-postgres-search-tests:
|
run-neo4j-pgvector-postgres-search-tests:
|
||||||
name: Search test for Neo4j/PGVector/Postgres
|
name: Search test for Neo4j/PGVector/Postgres (Python ${{ matrix.python-version }})
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: ${{ inputs.databases == 'all' || contains(inputs.databases, 'neo4j/pgvector/postgres') }}
|
if: ${{ inputs.databases == 'all' || contains(inputs.databases, 'neo4j/pgvector/postgres') }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: ${{ fromJSON(inputs.python-versions) }}
|
||||||
|
fail-fast: false
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: pgvector/pgvector:pg17
|
image: pgvector/pgvector:pg17
|
||||||
|
|
@ -172,7 +192,7 @@ jobs:
|
||||||
- name: Cognee Setup
|
- name: Cognee Setup
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
extra-dependencies: "postgres"
|
extra-dependencies: "postgres"
|
||||||
|
|
||||||
- name: Setup Neo4j with GDS
|
- name: Setup Neo4j with GDS
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue