.gitlab-ci.yml file. It installs evalflow, validates your setup, and runs the quality gate on every pipeline.
variables block maps a GitLab CI/CD variable to the environment variable evalflow reads at runtime. If you use a different provider, replace OPENAI_API_KEY with the variable name that matches your evalflow.yaml configuration — for example GROQ_API_KEY or ANTHROPIC_API_KEY.
Storing API keys
Store your provider key as a CI/CD variable:- Go to your project in GitLab.
- Click Settings → CI/CD → Variables.
- Click Add variable.
- Set the key (for example
OPENAI_API_KEY) and paste your provider key as the value. - Check Mask variable to prevent the value from appearing in job logs.
How the pipeline fails
evalflow exits with a non-zero code when a run does not pass:1 or 2, the evalflow job fails and the pipeline fails — blocking the merge request from merging if you have pipeline success required for merging.