Skip to content

Commit 37527f1

Browse files
authored
Fix minor bot bug (pyccel#1965)
Fix a bug in the bot where the coverage could not be run if unrelated tests have succeeded but have not created artifacts.
1 parent f77d57f commit 37527f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci_tools/bot_tools/bot_funcs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,10 @@ def run_tests(self, tests, python_version = None, force_run = False):
337337
workflow_ids = None
338338
ready = True
339339
if t == 'coverage':
340-
print([r['details_url'] for r in check_runs.values() if r['conclusion'] == "success"])
341-
workflow_ids = [int(r['details_url'].split('/')[-1]) for r in check_runs.values() if r['conclusion'] == "success" and '(' in r['name']]
340+
print([r['details_url'] for k,r in check_runs.items() \
341+
if r['conclusion'] == "success" and isinstance(k, tuple) and k[0] in deps])
342+
workflow_ids = [int(r['details_url'].split('/')[-1]) for k,r in check_runs.items() \
343+
if r['conclusion'] == "success" and isinstance(k, tuple) and k[0] in deps]
342344
ready = all(self._GAI.has_valid_artifacts(w) for w in workflow_ids)
343345
if ready:
344346
print("Running test")

0 commit comments

Comments
 (0)