Files
cibuildwheel/bin/run_tests.py
T

17 lines
427 B
Python
Raw Normal View History

#!/usr/bin/env python3
2019-11-12 23:51:27 +00:00
import os
import subprocess
import sys
2020-06-18 02:00:30 +02:00
from pathlib import Path
if __name__ == '__main__':
# move cwd to the project root
2020-06-18 02:00:30 +02:00
os.chdir(Path(__file__).resolve().parents[1])
2017-09-01 13:32:34 +01:00
2019-11-12 23:51:27 +00:00
# run the unit tests
subprocess.check_call([sys.executable, '-m', 'pytest', 'unit_test'])
2017-09-01 13:32:34 +01:00
2019-11-12 23:51:27 +00:00
# run the integration tests
2020-05-15 12:19:38 +01:00
subprocess.check_call([sys.executable, '-m', 'pytest', '-x', '--durations', '0', 'test'])