Skip to content

Commit 991f403

Browse files
committed
ci: check v8 tests failing
Signed-off-by: Joan Martinez <[email protected]>
1 parent aa15b9e commit 991f403

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ jobs:
217217
- name: Test
218218
id: test
219219
run: |
220-
poetry run pytest -m 'index and not elasticv8' --cov=docarray --cov-report=xml tests/index/${{ matrix.db_test_folder }}
220+
poetry run pytest -m 'index and not elasticv8' -s -v --cov=docarray --cov-report=xml tests/index/${{ matrix.db_test_folder }}
221221
echo "flag it as docarray for codeoverage"
222222
echo "codecov_flag=docarray" >> $GITHUB_OUTPUT
223223
timeout-minutes: 30
@@ -242,7 +242,7 @@ jobs:
242242
strategy:
243243
fail-fast: false
244244
matrix:
245-
python-version: [3.8]
245+
python-version: [3.10]
246246
pydantic-version: ["pydantic-v2", "pydantic-v1"]
247247
steps:
248248
- uses: actions/[email protected]
@@ -267,7 +267,7 @@ jobs:
267267
- name: Test
268268
id: test
269269
run: |
270-
poetry run pytest -m 'index and elasticv8' --cov=docarray --cov-report=xml tests
270+
poetry run pytest -m 'index and elasticv8' -s -v --cov=docarray --cov-report=xml tests
271271
echo "flag it as docarray for codeoverage"
272272
echo "codecov_flag=docarray" >> $GITHUB_OUTPUT
273273
timeout-minutes: 30

tests/index/elastic/v8/test_find.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
@pytest.mark.parametrize('similarity', ['cosine', 'l2_norm', 'dot_product'])
2020
def test_find_simple_schema(similarity, tmp_index_name): # noqa: F811
21+
from elasticsearch import Elasticsearch
22+
23+
es = Elasticsearch(hosts='http://localhost:9200/')
24+
ping = es.ping()
25+
print(f'PING WORKED? {ping}')
2126
class SimpleSchema(BaseDoc):
2227
tens: NdArray[10] = Field(similarity=similarity)
2328

tests/index/elastic/v8/test_index_get_del.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
def test_index_simple_schema(
2929
ten_simple_docs, use_docarray, tmp_index_name # noqa: F811
3030
):
31+
from elasticsearch import Elasticsearch
32+
33+
es = Elasticsearch(hosts='http://localhost:9200/')
34+
ping = es.ping()
35+
print(f'PING WORKED? {ping}')
3136
index = ElasticDocIndex[SimpleDoc](index_name=tmp_index_name)
3237
if use_docarray:
3338
ten_simple_docs = DocList[SimpleDoc](ten_simple_docs)

0 commit comments

Comments
 (0)