forked from evidentlyai/evidently
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_test.py
31 lines (26 loc) · 1.01 KB
/
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
29
30
31
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",
"how_to_run_drift_report_for_text_encoders.py",
"comparing_custom_statest_with_classic_distributions.py",
"how_to_run_drift_report_for_text_data.py" # too slow & torch version conflict?
]
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"ipython 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))