Skip to content

Commit 4850505

Browse files
committed
leverage uv stages to run tests
1 parent c73067f commit 4850505

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

semantic-kernel-python/run.sh

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,22 @@ cd python
1313
$PYTHON_BINARY -m venv .
1414
source ./bin/activate
1515

16-
# Install Poetry into base python
17-
pip install -U pip poetry
18-
# Create a package specific poetry environment
19-
poetry env use $PYTHON_BINARY
20-
# Recreate the poetry lock file
21-
poetry lock --no-update
22-
# Install from pyproject.toml into package specific environment
23-
poetry install ".[mongodb]" --with dev
24-
25-
# Workaround to test vector search first
16+
make install
17+
2618
OPENAI_API_KEY=$openai_api_key \
2719
OPENAI_ORG_ID="" \
2820
AZURE_OPENAI_DEPLOYMENT_NAME="" \
2921
AZURE_OPENAI_ENDPOINT="" \
3022
AZURE_OPENAI_API_KEY="" \
3123
MONGODB_ATLAS_CONNECTION_STRING=$CONN_STRING \
3224
Python_Integration_Tests=1 \
33-
$PYTHON_BINARY -m poetry run pytest tests/integration/connectors/memory/test_mongodb_atlas.py -k test_collection_knn
25+
uv run pytest tests/integration/connectors/memory/test_mongodb_atlas.py -k test_collection_knn
3426

35-
# Stored in evergreen VARIABLES
3627
OPENAI_API_KEY=$openai_api_key \
3728
OPENAI_ORG_ID="" \
3829
AZURE_OPENAI_DEPLOYMENT_NAME="" \
3930
AZURE_OPENAI_ENDPOINT="" \
4031
AZURE_OPENAI_API_KEY="" \
4132
MONGODB_ATLAS_CONNECTION_STRING=$CONN_STRING \
4233
Python_Integration_Tests=1 \
43-
$PYTHON_BINARY -m poetry run pytest tests/integration/connectors/memory/test_mongodb_atlas.py
34+
uv run pytest tests/integration/connectors/memory/test_mongodb_atlas.py

0 commit comments

Comments
 (0)