openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

Add pipeline for tests

Open thejaminator opened this issue 2 years ago • 1 comments

Added a CI pipeline to run tests. Should catch errors like this as well. https://github.com/openai/openai-python/issues/199

image

Example on my fork here https://github.com/thejaminator/openai-python/pull/1

The maintainers of this repo will need to set an environment API key OPENAI_API_KEY=<API-KEY> as a github secret, so the tests that require an API key will be run as part of the pipeline.

Alternatively, tests that require authentication with the API key can be separated from those that don't. And we can disable those that require authentication. Or mock the API response.

thejaminator avatar Jan 26 '23 17:01 thejaminator

@hallacy @ddeville would this MR be helpful?

thejaminator avatar Feb 04 '23 07:02 thejaminator

Thanks for this!

We've since rewritten the library entirely, so this change is no longer relevant. I'm sorry we didn't get to it sooner.

We currently run CI for this repo in a private mirror, but hope to add public CI with tests soon.

rattrayalex avatar Nov 10 '23 02:11 rattrayalex