File tree Expand file tree Collapse file tree 3 files changed +10
-29
lines changed
llama-index-python-vectorstore Expand file tree Collapse file tree 3 files changed +10
-29
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ functions:
38
38
39
39
" fetch repo " :
40
40
- command : subprocess.exec
41
- type : setup
41
+ type : test
42
42
params :
43
43
include_expansions_in_env : [DIR]
44
44
working_dir : " src"
@@ -61,7 +61,7 @@ functions:
61
61
62
62
" setup local atlas " :
63
63
- command : subprocess.exec
64
- type : setup
64
+ type : test
65
65
retry_on_failure : true
66
66
params :
67
67
include_expansions_in_env : [DIR]
@@ -72,7 +72,7 @@ functions:
72
72
73
73
" setup remote atlas " :
74
74
- command : subprocess.exec
75
- type : setup
75
+ type : test
76
76
params :
77
77
include_expansions_in_env : [DIR]
78
78
working_dir : " src"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,24 +16,17 @@ $PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}'
16
16
# shellcheck disable=SC2164
17
17
cd llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb
18
18
19
- # Install Poetry
20
- $PYTHON_BINARY -m venv .venv
21
- . .venv/bin/activate
22
- PYTHON_BINARY=$( which python)
23
- $PYTHON_BINARY -m pip install -U pip poetry
24
- # Create a package specific poetry environment
25
- $PYTHON_BINARY -m poetry env use $PYTHON_BINARY
26
- # Activate the poetry env, which itself does not include poetry
27
- . " $( $PYTHON_BINARY -m poetry env info --path) /bin/activate"
28
- # Recreate the poetry lock file
29
- $PYTHON_BINARY -m poetry lock
30
- # Install from pyproject.toml into package specific environment
31
- $PYTHON_BINARY -m poetry install --with dev
19
+ # Install uv.
20
+ $PYTHON_BINARY -m venv venv_pipeline
21
+ source venv_pipeline/bin/activate
22
+ pip install -U pip
23
+ pip install uv
32
24
33
25
# Run tests.
26
+ UV_PYTHON=$PYTHON_BINARY \
34
27
MONGODB_URI=" $MONGODB_URI " \
35
28
OPENAI_API_KEY=" $OPENAI_API_KEY " \
36
29
MONGODB_DATABASE=" llama_index_test_db" \
37
30
MONGODB_COLLECTION=" llama_index_test_vectorstore" \
38
31
MONGODB_INDEX=" vector_index" \
39
- $PYTHON_BINARY -m poetry run pytest -v tests
32
+ uv run pytest -v tests
You can’t perform that action at this time.
0 commit comments