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 -q
Explanation

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.
OpenIn sheetyamlsame section
Build a Docker image
Use Buildx for modern Docker builds.
OpenIn sheetyamlsame section
Create a GitHub release on tag push
Publish a release whenever a version tag is pushed.
Publish an npm package
Publish to npm from GitHub Actions.
Deploy only from main after tests
Gate deployments on successful CI from the main branch.