post_pr_test.py
13 lines
| 308 B
| text/x-python
|
PythonLexer
/ tools / post_pr_test.py
Fernando Perez
|
r7010 | #!/usr/bin/env python | ||
"""Post the results of a pull request test to Github. | ||||
""" | ||||
Thomas Kluyver
|
r7863 | from test_pr import TestRun | ||
Thomas Kluyver
|
r6713 | |||
Thomas Kluyver
|
r7863 | testrun = TestRun.load_results() | ||
testrun.post_logs() | ||||
testrun.print_results() | ||||
testrun.post_results_comment() | ||||
Thomas Kluyver
|
r6713 | |||
print() | ||||
print("Posted test results to pull request") | ||||
Thomas Kluyver
|
r7863 | print(" " + testrun.pr['html_url']) | ||