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: 3 additions & 3 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ functions:

"fetch repo":
- command: subprocess.exec
type: setup
type: test
params:
include_expansions_in_env: [DIR]
working_dir: "src"
Expand All @@ -61,7 +61,7 @@ functions:

"setup local atlas":
- command: subprocess.exec
type: setup
type: test
retry_on_failure: true
params:
include_expansions_in_env: [DIR]
Expand All @@ -72,7 +72,7 @@ functions:

"setup remote atlas":
- command: subprocess.exec
type: setup
type: test
params:
include_expansions_in_env: [DIR]
working_dir: "src"
Expand Down
12 changes: 0 additions & 12 deletions llama-index-python-vectorstore/patches/pin-llama-index-core.patch

This file was deleted.

21 changes: 7 additions & 14 deletions llama-index-python-vectorstore/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,17 @@ $PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}'
# shellcheck disable=SC2164
cd llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb

# Install Poetry
$PYTHON_BINARY -m venv .venv
. .venv/bin/activate
PYTHON_BINARY=$(which python)
$PYTHON_BINARY -m pip install -U pip poetry
# Create a package specific poetry environment
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY
# Activate the poetry env, which itself does not include poetry
. "$($PYTHON_BINARY -m poetry env info --path)/bin/activate"
# Recreate the poetry lock file
$PYTHON_BINARY -m poetry lock
# Install from pyproject.toml into package specific environment
$PYTHON_BINARY -m poetry install --with dev
# Install uv.
$PYTHON_BINARY -m venv venv_pipeline
source venv_pipeline/bin/activate
pip install -U pip
pip install uv

# Run tests.
UV_PYTHON=$PYTHON_BINARY \
MONGODB_URI="$MONGODB_URI" \
OPENAI_API_KEY="$OPENAI_API_KEY" \
MONGODB_DATABASE="llama_index_test_db" \
MONGODB_COLLECTION="llama_index_test_vectorstore" \
MONGODB_INDEX="vector_index" \
$PYTHON_BINARY -m poetry run pytest -v tests
uv run pytest -v tests