This repository provides a minimal Python project structure with a GitHub Actions workflow for automated testing. It can be used as a starting point for new Python projects.
src/- application source codetests/- unit tests.github/workflows/- CI configurationpyproject.toml- optional project metadata for packaging
Branch protection rules should require pull request reviews and passing
status checks before merging to the main branch. Admins may be
allowed to bypass these requirements where needed.
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install dependencies (if any) and run tests:
pip install -r requirements.txt # optional pytest
pyproject.toml stores build configuration and project metadata. It enables
standard packaging with setuptools and can declare dependencies. You may
remove it for simple scripts, but it is recommended if you intend to distribute
the project as a package.
This project is provided as-is under the MIT License.