DevOps essentials — Dockerfile best practices, CI/CD patterns, deployment configuration, and container security
89
87%
Does it follow best practices?
Impact
100%
1.21xAverage score across 3 eval scenarios
Passed
No known issues
A team has a Python web application built with FastAPI. They need a GitHub Actions CI/CD workflow to automate their development pipeline. The application uses pytest for testing, ruff for linting, and mypy for type checking. Dependencies are managed with pip and defined in requirements.txt.
The workflow should:
main and on pull requests targeting mainThe deployment requires a DEPLOY_API_KEY credential and a DEPLOY_URL endpoint.
Produce:
output/.github/workflows/ci.yml — The complete GitHub Actions workflow fileThe workflow should be complete and ready to use. No placeholders or TODO comments (except the deploy step itself which is intentionally a placeholder).