Quick Start#
Install#
Installation from PyPI:
$ python -m pip install edgetest-hub
Installation from conda-forge:
$ conda install -c conda-forge edgetest-hub
Usage#
The primary use case is Jenkins to automate PRs with the latest versions for dependency testing, but can be
used from any machine with git and hub installed.
To automatically update your package with edgetest-hub, and auto generate Pull Requests add the following
to your configuration:
[edgetest.hub]
git_url = github.com # optional
git_repo_org = org-name
git_repo_name = repo-name
git_username = Jenkins # optional
git_useremail = noreply@capitalone.com # optional
updater_branch = dep-updates # optional
pr_to_branch = develop # optional
pr_reviewers = fdosani # comma seperated github ids
open_issue_on_fail = True # True or False if you want an issue to be created when tests fail
ensure you have an environment variable
GITHUB_TOKENset. This token should have permissions to interact with the GitHub repo in question.gitis installed.hubis installed. See here.
That’s it! the plugin will automatically be called after the tests finish.
It will check for
GITHUB_TOKENbefore continuing.The first step configures
gitand theupdater_branch. - will delete theupdater_branchif it exists remotely or locally.Then commits
setup.cfgandrequirements.txtand submits a PR for review.