# Tests on Every Push with GitHub Actions

A GitHub Actions workflow in .github/workflows/ci.yml installs an API's requirements and runs Ruff, mypy and pytest on a fresh computer at every push and pull request, so a change that breaks a check gets a red cross on its commit, with a log that says which step failed and why.

![Cheat sheet: Tests on Every Push with GitHub Actions](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/b309316405d54b0e9c8a3eb3106d4fd7.webp)

- Category: FastAPI
- Level: Journeyman
- Tags: Continuous Integration, github actions, python, Runner, software-development, Status Badge, Step (github-actions), Workflow
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/fastapi-pro-github-actions-ci-cheat-sheet
