Set up Python, install dependencies, and run tests.
Section: Testing and build pipelines
Python CI workflow
yaml
yaml
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- run: pytest -qExplanation
Language setup actions and minimal test commands make portable CI easy to maintain.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Testing and build pipelines
Node.js CI workflow
Install dependencies, lint, test, and build a Node project.
Create a GitHub release on tag push
Publish a release whenever a version tag is pushed.
Deploy only from main after tests
Gate deployments on successful CI from the main branch.