Python toolkit for working with Continuous Integration services.
A Python library for working with Continuous Integration services. For Python 2.7 and 3.5+.
pip install ci.py:
$ pip install ci-py
import ci ci.is_ci() # True/False ci.is_pr() # True/False ci.name() # "Travis CI" ci.pr() # "38" ci.repo() # "grantmcconnaughey/ci.py" ci.commit_sha() # "246249bab34e78a020efc67b626efd6052e754d9"
ci.py works with the following CI services:
- Travis CI
- Circle CI
- GitHub Actions
- Drone CI
- AWS CodeBuild
- Azure DevOps
To run tests, install
tox and run it from the command line:
This will run tests against all of the Python versions defined in
tox.ini. Note that all of these versions of Python will need to be installed. You can use
pyenv to install these different versions.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
ci-py-1.0.0.tar.gz (4.9 kB view hashes)
Hashes for ci_py-1.0.0-py2.py3-none-any.whl