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
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Test
id: test
run: |
poetry run pytest -m "not (tensorflow or benchmark)" ${{ matrix.test-path }}
poetry run pytest -m "not (tensorflow or benchmark or index)" ${{ matrix.test-path }}
timeout-minutes: 30
env:
JINA_AUTH_TOKEN: "${{ secrets.JINA_AUTH_TOKEN }}"
Expand Down Expand Up @@ -217,13 +217,15 @@ jobs:
python -m pip install --upgrade pip
python -m pip install poetry
poetry install --all-extras
poetry run pip install protobuf==3.19.0
poetry run pip install tensorflow==2.11.0
sudo apt-get update
sudo apt-get install --no-install-recommends ffmpeg

- name: Test
id: test
run: |
poetry run pytest -m 'index and (not tensorflow)' tests
poetry run pytest -m 'index' tests
timeout-minutes: 30

docarray-test-tensorflow:
Expand Down
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import pytest
from pydantic import Field

from docarray import BaseDoc
from docarray.index import ElasticV7DocIndex
from tests.index.elastic.fixture import start_storage_v7 # noqa: F401
from tests.integrations.doc_index.elastic.fixture import start_storage_v7 # noqa: F401

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


def test_column_config():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import numpy as np
import pytest
import torch
from pydantic import Field

from docarray import BaseDoc
from docarray.index import ElasticV7DocIndex
from docarray.typing import NdArray, TorchTensor
from tests.index.elastic.fixture import start_storage_v7 # noqa: F401
from tests.index.elastic.fixture import FlatDoc, SimpleDoc
from tests.integrations.doc_index.elastic.fixture import start_storage_v7 # noqa: F401
from tests.integrations.doc_index.elastic.fixture import FlatDoc, SimpleDoc

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


def test_find_simple_schema():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@
from docarray.documents import ImageDoc, TextDoc
from docarray.index import ElasticV7DocIndex
from docarray.typing import NdArray
from tests.index.elastic.fixture import start_storage_v7 # noqa: F401
from tests.index.elastic.fixture import DeepNestedDoc, FlatDoc, NestedDoc, SimpleDoc
from tests.integrations.doc_index.elastic.fixture import start_storage_v7 # noqa: F401
from tests.integrations.doc_index.elastic.fixture import (
DeepNestedDoc,
FlatDoc,
NestedDoc,
SimpleDoc,
)

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


@pytest.fixture
Expand Down