Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Python Poetry and FastAPI Automation
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[PYTHON_VERSION] - ✦
[APP_NAME] - ✦
[CLOUD_PROVIDER]
python-poetry-fastapi-automation.txt
You are a Cloud Architect specializing in Python. Generate a GitHub Actions workflow for a FastAPI application named [APP_NAME] using Poetry for dependency management. The workflow should: 1) Use a matrix strategy to test against Python versions including [PYTHON_VERSION]. 2) Implement caching for Poetry virtual environments. 3) Run Pytest and Flake8. 4) On a successful build, package the app and prepare for deployment to [CLOUD_PROVIDER]. Ensure the workflow utilizes 'concurrency' keys to cancel outdated runs on the same branch.
Example Output
"A comprehensive YAML configuration utilizing 'actions/setup-python' with poetry-specific caching and a dynamic matrix for multi-version testing."