MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / getRuns

Function getRuns

pythonFiles/aggregateTestResults.py:15–34  ·  view source on GitHub ↗
(createdDate)

Source from the content-addressed store, hash-verified

13
14# %%
15def getRuns(createdDate):
16 runsResponse = requests.get(
17 "https://api.github.com/repos/deepnote/vscode-deepnote/actions/workflows/ci.yml/runs",
18 params={"created": createdDate, "branch": "main"},
19 headers={
20 "Accept": "application/vnd.github+json",
21 "Authorization": f"Bearer {authtoken}",
22 },
23 )
24
25 if runsResponse.status_code != 200:
26 print(f"Error {runsResponse.status_code}")
27 raise Exception("Error getting runs")
28
29 runs = runsResponse.json()["workflow_runs"]
30
31 for run in runs:
32 print(f"Found run {run['id']} for event '{run['event']}'")
33
34 return runs
35
36
37def getArtifactData(id):

Callers 1

Calls 2

jsonMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected