We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfaed08 commit 03f05c2Copy full SHA for 03f05c2
.github/get_build_status.py
@@ -1,6 +1,6 @@
1
import requests
2
import pandas as pd
3
-
+import sys
4
pd.set_option("display.max_columns", None)
5
pd.set_option("display.max_rows", None)
6
slicerExtensionName ='IDCBrowser'
@@ -44,8 +44,8 @@
44
error_sum = df['ConfigureErrors'].sum()+ df['CompilationErrors'].sum()+df['TestFail'].sum()
45
has_errors = error_sum > 0
46
if has_errors:
47
- print("Build Failed")
+ sys.exit(1)
48
else:
49
- print("Build Successful")
+ sys.exit(0)
50
51
print(f"Failed to retrieve data. Status code: {response.status_code}")
.github/workflows/check_extension_build_status.yml
@@ -24,4 +24,4 @@ jobs:
24
- name: Run Python script to calculate errors
25
run: |
26
python .github/get_build_status.py
27
- exit $error_sum
+
0 commit comments