python github actions w/ tox and pre-commit $anthonywritescode @2020
creating virtual environment and installing dependencies
$ mkdir .venv
$ pipenv install --dev
activating virtual environment
$ pipenv shell
running the application
$ python main.py
running pytest tests
$ pytest
running tox
- for testing app on different python environment
$ tox
- for testing app on the python interpretter installed in the system
$ tox -e py
make sure python is installed, and pipenv is installed in the system.
installing pipenv
$ pip install pipenv
setup virtual environment, installing dependencies
$ mkdir .venv
$ pipenv install
running the application
$ pipenv run python main.py
(or)
$ pipenv shell
$ python main.py