test: add unit tests for vector stores of Milvus, Qdrant and Weaviate (#3688)

This commit is contained in:
Bowen Liang
2024-04-24 21:52:42 +08:00
committed by GitHub
parent 8ca5aa1190
commit 9cec8c1750
15 changed files with 211 additions and 6 deletions

View File

@@ -37,6 +37,27 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Weaviate
uses: hoverkraft-tech/compose-action@v2.0.0
with:
compose-file: docker/docker-compose.middleware.yaml
services: weaviate
- name: Set up Qdrant
uses: hoverkraft-tech/compose-action@v2.0.0
with:
compose-file: docker/docker-compose.qdrant.yaml
services: qdrant
- name: Set up Milvus
uses: hoverkraft-tech/compose-action@v2.0.0
with:
compose-file: docker/docker-compose.milvus.yaml
services: |
etcd
minio
milvus-standalone
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
@@ -49,6 +70,9 @@ jobs:
- name: Install dependencies
run: pip install -r ./api/requirements.txt -r ./api/requirements-dev.txt
- name: Run Unit tests
run: dev/pytest/pytest_unit_tests.sh
- name: Run ModelRuntime
run: dev/pytest/pytest_model_runtime.sh
@@ -58,5 +82,5 @@ jobs:
- name: Run Workflow
run: dev/pytest/pytest_workflow.sh
- name: Run Unit tests
run: dev/pytest/pytest_unit_tests.sh
- name: Run Vector Stores
run: dev/pytest/pytest_vdb.sh