Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBourne committed Jul 9, 2024
1 parent 3f74a3c commit 6e50dab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ci_tools/bot_clean_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
# pr_id = 0
#bot = Bot(pr_id = pr_id, commit = event['check_run']['head_sha'])
bot = Bot(pr_id = pr_id, commit = os.environ["COMMIT"])
try:
pr_id = bot.get_pr_id()
except StopIteration:
pr_id = 0
#try:
# pr_id = bot.get_pr_id()
#except StopIteration:
# pr_id = 0

name_key = bot.get_name_key(name)

Expand All @@ -54,10 +54,10 @@
q_key = q_name.split('(')[1].split(')')[0].strip()
q_name, python_version = q_key.split(',')
workflow_ids = None
print([r['name'] for r in runs])
print(runs)
print([r['details_url'] for r in runs])
if q_name == 'coverage':
print([r['name'] for r in runs])
print(runs)
print([r['details_url'] for r in runs])
workflow_ids = [int(r['details_url'].split('/')[-1]) for r in runs if r['conclusion'] == "success" and '(' in r['name']]
bot.run_test(q_name, python_version, q["id"], workflow_ids)

Expand Down

0 comments on commit 6e50dab

Please sign in to comment.