Files
semantic-kernel/python/tests/integration
Abby HarrisonandDevis Lucato db040e2e45 Python: Enable pinecone tests to run in CI (#1864)
### 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]>
2023-07-05 23:13:46 +00:00
..