forked from evidentlyai/evidently
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_test.py
28 lines (23 loc) · 838 Bytes
/
example_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import sys
excludes = [
"nyc_taxi_data_drift_dashboard_customization.py",
"historical_drift_visualization.py",
"mlflow_integration.py",
"ibm_hr_attrition_model_validation.py",
"bicycle_demand_monitoring_setup.py",
]
if __name__ == "__main__":
failed_scripts = []
for entry, _, files in os.walk("example_scripts"):
for file in files:
if file.endswith(".py"):
if file in excludes:
continue
result = os.system(f"python example_scripts/{file}")
if result != 0:
failed_scripts.append((file, result))
if failed_scripts:
for fail, errcode in failed_scripts:
print(f"Script {fail} failed with error code {errcode}", file=sys.stderr)
sys.exit(len(failed_scripts))