Skip to content

Commit

Permalink
build: test via poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
MatriQ committed May 25, 2024
1 parent 075c01a commit ac63620
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 6 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,75 @@ jobs:
- name: Test Vector Stores
run: dev/pytest/pytest_vdb.sh

test-in-poetry:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"

steps:
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.8.1"

- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
cache-dependency-path: ./api/poetry.lock

- name: Poetry check
run: poetry check -C api

- name: Install dependencies
run: poetry install -C api

- name: Run Unit tests
run: poetry run -C api bash dev/pytest/pytest_unit_tests.sh

- name: Run ModelRuntime
run: poetry run -C api bash dev/pytest/pytest_model_runtime.sh

- name: Run Tool
run: poetry run -C api bash dev/pytest/pytest_tools.sh

- name: Set up Sandbox
uses: hoverkraft-tech/compose-action@v2.0.0
with:
compose-file: |
docker/docker-compose.middleware.yaml
services: |
sandbox
ssrf_proxy
- name: Run Workflow
run: poetry run -C api bash dev/pytest/pytest_workflow.sh

- name: Set up Vector Stores (Weaviate, Qdrant, PGVector, Milvus, PgVecto-RS)
uses: hoverkraft-tech/compose-action@v2.0.0
with:
compose-file: |
docker/docker-compose.middleware.yaml
docker/docker-compose.qdrant.yaml
docker/docker-compose.milvus.yaml
docker/docker-compose.pgvecto-rs.yaml
docker/docker-compose.pgvector.yaml
services: |
weaviate
qdrant
etcd
minio
milvus-standalone
pgvecto-rs
pgvector
- name: Test Vector Stores
run: poetry run -C api bash dev/pytest/pytest_vdb.sh
9 changes: 3 additions & 6 deletions api/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac63620

Please sign in to comment.