import kaolin | |
import subprocess | |
print("Kaolin version:", kaolin.__version__) | |
commands = [ | |
"pip install -r kaolin/tools/ci_requirements.txt", | |
"pytest kaolin/tests/python/" | |
] | |
for command in commands: | |
print(f"Running command: {command}") | |
result = subprocess.run(command, shell=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
print("Output:") | |
print(result.stdout) | |
if result.returncode != 0: | |
print("Error:") | |
print(result.stderr) | |
print("-" * 40) # Separator | |