Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ jobs:
fail-fast: false
matrix:
python-version: [3.7]
db_test_folder: [base_classes, elastic, hnswlib, qdrant, weaviate]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -225,7 +226,7 @@ jobs:
- name: Test
id: test
run: |
poetry run pytest -m 'index and not elasticv8' tests
poetry run pytest -m 'index and not elasticv8' tests/index/${{ matrix.db_test_folder }}
timeout-minutes: 30


Expand Down
2,135 changes: 856 additions & 1,279 deletions poetry.lock

Large diffs are not rendered by default.

Empty file.
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# TODO: enable ruff qa on this file when we figure out why it thinks weaviate_client is
# redefined at each test that fixture
# ruff: noqa
import pytest
from pydantic import Field

from docarray import BaseDoc
from docarray.index.backends.weaviate import WeaviateDocumentIndex
from tests.integrations.doc_index.weaviate.fixture_weaviate import ( # noqa: F401
from tests.index.weaviate.fixture_weaviate import ( # noqa: F401
start_storage,
weaviate_client,
)

pytestmark = [pytest.mark.slow, pytest.mark.index]


def test_column_config(weaviate_client):
def get_text_field_data_type(store, index_name):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
from docarray import BaseDoc
from docarray.index.backends.weaviate import WeaviateDocumentIndex
from docarray.typing import TorchTensor
from tests.integrations.doc_index.weaviate.fixture_weaviate import ( # noqa: F401
from tests.index.weaviate.fixture_weaviate import ( # noqa: F401
start_storage,
weaviate_client,
)

pytestmark = [pytest.mark.slow, pytest.mark.index]


def test_find_torch(weaviate_client):
class TorchDoc(BaseDoc):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
WeaviateDocumentIndex,
)
from docarray.typing import NdArray
from tests.integrations.doc_index.weaviate.fixture_weaviate import ( # noqa: F401
from tests.index.weaviate.fixture_weaviate import ( # noqa: F401
HOST,
start_storage,
weaviate_client,
)

pytestmark = [pytest.mark.slow, pytest.mark.index]


class SimpleDoc(BaseDoc):
tens: NdArray[10] = Field(dim=1000, is_embedding=True)
Expand Down Expand Up @@ -440,7 +442,6 @@ def test_limit_query_builder(test_store):
assert len(docs) == 2


@pytest.mark.linux
def test_embedded_weaviate():
class Document(BaseDoc):
text: str
Expand Down