This repository demonstrates a basic CI setup for a Python project using GitHub Actions and Docker.
- Unit testing with
pytest - Code linting with
flake8 - GitHub Actions workflow for CI
- Docker support
Install dependencies:
pip install -r requirements.txtRun tests:
pytestRun linter:
flake8 .Build image:
docker build -t python-ci-demo .Run container (executes tests):
docker run --rm python-ci-demoCI runs on every push and pull request to the main branch, running tests and lint checks.