diff --git a/semantic-kernel-csharp/run.sh b/semantic-kernel-csharp/run.sh index e73a4af..55355ee 100644 --- a/semantic-kernel-csharp/run.sh +++ b/semantic-kernel-csharp/run.sh @@ -10,8 +10,10 @@ mkdir -p "$DOTNET_SDK_PATH" echo "Downloading .NET SDK installer into $DOTNET_SDK_PATH folder..." curl -Lfo "$DOTNET_SDK_PATH"/dotnet-install.sh https://dot.net/v1/dotnet-install.sh -echo "Installing .NET LTS SDK..." -bash "$DOTNET_SDK_PATH"/dotnet-install.sh --channel 8.0 --install-dir "$DOTNET_SDK_PATH" --no-path +echo "Installing .NET 9.0 SDK..." +bash "$DOTNET_SDK_PATH"/dotnet-install.sh --channel 9.0 --install-dir "$DOTNET_SDK_PATH" --no-path +echo "Installing .NET 8.0 runtime..." +bash "$DOTNET_SDK_PATH"/dotnet-install.sh --channel 8.0 --install-dir "$DOTNET_SDK_PATH" --no-path --runtime dotnet # The tests use the TestContainers.Net library which requires docker. # RHEL 8 and 9 don't support docker so we have the setup below to emulate docker with podman @@ -29,5 +31,5 @@ sed -i -e 's/"The MongoDB container is intermittently timing out at startup time # Remove the attribute blocking tests so we can run them sed -i -e 's/\[DisableVectorStoreTests(Skip = "The MongoDB container is intermittently timing out at startup time blocking prs, so these test should be run manually.")\]//g' dotnet/src/IntegrationTests/Connectors/Memory/MongoDB/MongoDBVectorStoreTests.cs -echo "Running MongoDBVectorStoreTests and MongoDBVectorStoreRecordCollectionTests" -sudo $DOTNET_SDK_PATH/dotnet test dotnet/src/IntegrationTests/IntegrationTests.csproj --filter "SemanticKernel.IntegrationTests.Connectors.MongoDB.MongoDBVectorStoreTests | SemanticKernel.IntegrationTests.Connectors.MongoDB.MongoDBVectorStoreRecordCollectionTests" +echo "Running MongoDBVectorStoreTests" +sudo $DOTNET_SDK_PATH/dotnet test dotnet/src/IntegrationTests/IntegrationTests.csproj --filter "SemanticKernel.IntegrationTests.Connectors.MongoDB.MongoDBVectorStoreTests"