Run by Travis CI and Azure Pipelines.
pip3 install -r requirements/tests.txt
Run unittests: pytest -vv -s yogit/tests
Check code coverage: pytest --cov=yogit yogit/tests
Coding style is handled by black
(via ci/blackify
).
Static checks are handled by pylint
(via ci/pylintify
).
You must pip3 install -r requirements/codesanity.txt
to use those scripts.
Note: continuous integration does not check code sanity.
- Bump version
- Update CHANGELOG.md
- Push a new tag
TravisCI automatically publish yogit
on PyPI when a tag is pushed.
Password in .travis.yml
has been encrypted with:
travis encrypt <password> --add deploy.password
- Deploy on Test PyPI
pip3 uninstall yogit
git clean -d --force --dry-run
git clean -d --force
python3 setup.py sdist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
pip3 install --index-url https://test.pypi.org/simple/ --no-deps yogit
yogit --help
python3 -c "import yogit"
- Deploy on PyPI
pip3 uninstall yogit
git clean -d --force --dry-run
git clean -d --force
python3 setup.py sdist
twine upload dist/*
pip3 install yogit
yogit --help
python3 -c "import yogit"