This is a starter Python repo, for a dockerized cloud Python application, using Git Actions for Continuos Integration. It uses docker-compose with a PostgreSQL service container.
# Start a clean python environment
pipenv shell
# Install dependencies
pipenv install --dev
# Setup pre-commit and pre-push hooks
pipenv run pre-commit install -t pre-commit
pipenv run pre-commit install -t pre-push
Running directly in the development computer.
# Executes all the tests
py.test
# Executes the module with argument 5
python -m py_start 5
Running using containers in the development computer.
# Builds the application docker images
docker-compose build
docker-compose run --service-ports --rm test 5
docker-compose run --service-ports --rm dev 5