mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
### Motivation and Context The pinecone integration tests can run locally, but not in CI. CI has no way of picking up the pinecone environment. Pinecone tests rely on the following environment variables in CI: - Pinecone__ApiKey - Pinecone__Environment `get_pinecone_config` in `test_pinecone.py` currently only accounts for Pinecone__ApiKey ### Description This PR changes the method `get_pinecone_config` in `test_pinecone.py` to return the pinecone environment from an environment variable if the tests are being run in CI. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows SK Contribution Guidelines (https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) - [ ] The code follows the .NET coding conventions (https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions) verified with `dotnet format` - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄 Co-authored-by: Devis Lucato <[email protected]>