Run the unit tests in CI

This commit is contained in:
Joe Rickerby
2017-09-01 13:32:34 +01:00
parent 5ae4da631f
commit 9091533fcc
4 changed files with 11 additions and 3 deletions
+6
View File
@@ -7,6 +7,12 @@ from glob import glob
# move cwd to the project root
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
### run the unit tests
subprocess.check_call(['python', '-m', 'pytest', 'unit_test'])
### run the integration tests
test_projects = glob('test/??_*')
if len(test_projects) == 0: