|
7 | 7 | CONN_STRING=$(fetch_local_atlas_uri)
|
8 | 8 | PYTHON_BINARY=$(find_python3)
|
9 | 9 |
|
10 |
| - |
11 | 10 | # WORKING_DIR = src/semantic-kernel-python/semantic-kernel
|
12 | 11 | cd python
|
13 | 12 |
|
| 13 | +# Temporary solution until https://github.com/microsoft/semantic-kernel/issues/9067 resolves |
| 14 | +$PYTHON_BINARY -m venv venv_wrapper |
| 15 | +source venv_wrapper/bin/activate |
| 16 | +pip install --upgrade uv |
14 | 17 |
|
15 |
| -# Install Poetry into base python |
16 |
| -$PYTHON_BINARY -m pip install -U pip poetry |
17 |
| -# Create a package specific poetry environment |
18 |
| -$PYTHON_BINARY -m poetry env use $PYTHON_BINARY |
19 |
| -# Activate the poetry env, which itself does not include poetry |
20 |
| -source $($PYTHON_BINARY -m poetry env info --path)/bin/activate |
21 |
| -# Recreate the poetry lock file |
22 |
| -$PYTHON_BINARY -m poetry lock --no-update |
23 |
| -# Install from pyproject.toml into package specific environment |
24 |
| -$PYTHON_BINARY -m poetry install --with dev |
25 |
| - |
26 |
| -# Create .env file |
27 |
| -python -c "from dotenv import set_key; set_key('.env', 'OPENAI_API_KEY', '$openai_api_key')" |
28 |
| -python -c "from dotenv import set_key; set_key('.env', 'MONGODB_ATLAS_CONNECTION_STRING', '$CONN_STRING')" |
| 18 | +make install-python |
| 19 | +make install-sk |
| 20 | +make install-pre-commit |
29 | 21 |
|
30 |
| -# Workaround to test vector search first |
31 | 22 | OPENAI_API_KEY=$openai_api_key \
|
32 |
| -OPENAI_ORG_ID="" \ |
33 |
| -AZURE_OPENAI_DEPLOYMENT_NAME="" \ |
34 |
| -AZURE_OPENAI_ENDPOINT="" \ |
35 |
| -AZURE_OPENAI_API_KEY="" \ |
36 |
| -MONGODB_ATLAS_CONNECTION_STRING=$CONN_STRING \ |
37 |
| -Python_Integration_Tests=1 \ |
38 |
| -$PYTHON_BINARY -m poetry run pytest tests/integration/connectors/memory/test_mongodb_atlas.py -k test_collection_knn |
39 |
| - |
40 |
| -# Stored in evergreen VARIABLES |
| 23 | + OPENAI_ORG_ID="" \ |
| 24 | + AZURE_OPENAI_DEPLOYMENT_NAME="" \ |
| 25 | + AZURE_OPENAI_ENDPOINT="" \ |
| 26 | + AZURE_OPENAI_API_KEY="" \ |
| 27 | + MONGODB_ATLAS_CONNECTION_STRING=$CONN_STRING \ |
| 28 | + Python_Integration_Tests=1 \ |
| 29 | + uv run pytest tests/integration/connectors/memory/test_mongodb_atlas.py -k test_collection_knn |
| 30 | + |
41 | 31 | OPENAI_API_KEY=$openai_api_key \
|
42 |
| -OPENAI_ORG_ID="" \ |
43 |
| -AZURE_OPENAI_DEPLOYMENT_NAME="" \ |
44 |
| -AZURE_OPENAI_ENDPOINT="" \ |
45 |
| -AZURE_OPENAI_API_KEY="" \ |
46 |
| -MONGODB_ATLAS_CONNECTION_STRING=$CONN_STRING \ |
47 |
| -Python_Integration_Tests=1 \ |
48 |
| -$PYTHON_BINARY -m poetry run pytest tests/integration/connectors/memory/test_mongodb_atlas.py |
| 32 | + OPENAI_ORG_ID="" \ |
| 33 | + AZURE_OPENAI_DEPLOYMENT_NAME="" \ |
| 34 | + AZURE_OPENAI_ENDPOINT="" \ |
| 35 | + AZURE_OPENAI_API_KEY="" \ |
| 36 | + MONGODB_ATLAS_CONNECTION_STRING=$CONN_STRING \ |
| 37 | + Python_Integration_Tests=1 \ |
| 38 | + uv run pytest tests/integration/connectors/memory/test_mongodb_atlas.py |
0 commit comments