post_pr_test.py
13 lines
| 452 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
|
r6713 | from test_pr import load_results, post_logs, post_results_comment, print_results | ||
Thomas Kluyver
|
r7467 | num, results, pr, unavailable_pythons = load_results() | ||
Thomas Kluyver
|
r6713 | results_urls = post_logs(results) | ||
Thomas Kluyver
|
r7467 | print_results(pr, results_urls, unavailable_pythons) | ||
post_results_comment(pr, results_urls, num, unavailable_pythons) | ||||
Thomas Kluyver
|
r6713 | |||
print() | ||||
print("Posted test results to pull request") | ||||
print(" " + pr['html_url']) | ||||