CICD-430 · Prompt regression testing
Encyclopedia · AI and LLM application pipelines · All snippets
Previous · CICD-429 · Next · CICD-431
1. Where it fits
- Placement CI evaluation run step.
- Prerequisites approved synthetic evaluation data, authorized model artifacts and pinned runtime tools.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
pytest -q tests/evals/test_prompt_regression.py --junitxml=prompt-eval.xml3. How it works
Pytest discovers the selected test files or markers and returns a process exit status reflecting the test outcome.
4. Verify the result
Pin prompts and fixtures, constrain sampling, and compare behavior with task-specific checks rather than exact prose when possible.
Validation syntax-validated (Bash parse). Status definitions.