A simple Python CLI for math operations, used as the training project for the Git/GitHub workshop.
add— Add two integerssub— Subtract two integers
- Python 3.10+
- See
pyapp/requirements.txtfor dependencies
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r pyapp/requirements.txtpython pyapp/app.py add 3 5 # → 8
python pyapp/app.py sub 10 4 # → 6pytest -q pyapp/test_app.pydocker build -f pyapp/Dockerfile -t pyapp .
docker run pyapp add 3 5Copy .env.example to .env and adjust values:
cp pyapp/.env.example .envTests run automatically on every push and pull request via GitHub Actions.
See .github/workflows/ci.yml.
See docs/contributors.md to add your name during the workshop.
See docs/setup.md for detailed setup instructions.