.circleci/config.yml file. It runs evalflow in a dedicated job that fails the workflow when quality regresses.
evalflow job runs in CircleCI’s Python convenience image. Adjust the image tag if you need a different Python version.
Storing API keys
Store your provider key as a project environment variable:- Go to your project in CircleCI.
- Click Project Settings → Environment Variables.
- Click Add environment variable.
- Set the name (for example
OPENAI_API_KEY) and paste your provider key as the value.
OPENAI_API_KEY (or whichever key your evalflow.yaml is configured to use) from the environment at runtime.
How the workflow fails
evalflow exits with a non-zero code when a run does not pass:1 or 2, the evalflow job fails and the quality-gate workflow fails.