##// END OF EJS Templates
time(it) magic: format timespans up to hours in human readable form...
time(it) magic: format timespans up to hours in human readable form * Refactor time formatting of timeit into a new function * Add minutes and hours for long running cells/lines * Convert time and timeit magic to use the new function Minutes and hours are float formatted, so 1.5 h is "1 hour, 30 minutes". Signed-off-by: Jan Schulz <jasc@gmx.net>

File last commit:

r7863:28e099c2
r9309:a7fb868d
Show More
post_pr_test.py
13 lines | 308 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Post the results of a pull request test to Github.
"""
from test_pr import TestRun
testrun = TestRun.load_results()
testrun.post_logs()
testrun.print_results()
testrun.post_results_comment()
print()
print("Posted test results to pull request")
print(" " + testrun.pr['html_url'])