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:
3838
3939 " fetch repo " :
4040 - command : subprocess.exec
41- type : setup
41+ type : test
4242 params :
4343 include_expansions_in_env : [DIR]
4444 working_dir : " src"
@@ -61,7 +61,7 @@ functions:
6161
6262 " setup local atlas " :
6363 - command : subprocess.exec
64- type : setup
64+ type : test
6565 retry_on_failure : true
6666 params :
6767 include_expansions_in_env : [DIR]
@@ -72,7 +72,7 @@ functions:
7272
7373 " setup remote atlas " :
7474 - command : subprocess.exec
75- type : setup
75+ type : test
7676 params :
7777 include_expansions_in_env : [DIR]
7878 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}'
1616# shellcheck disable=SC2164
1717cd llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb
1818
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
3224
3325# Run tests.
26+ UV_PYTHON=$PYTHON_BINARY \
3427MONGODB_URI=" $MONGODB_URI " \
3528OPENAI_API_KEY=" $OPENAI_API_KEY " \
3629MONGODB_DATABASE=" llama_index_test_db" \
3730MONGODB_COLLECTION=" llama_index_test_vectorstore" \
3831MONGODB_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