Use GitHub Actions to run continuous integration checks

This commit is contained in:
Nick Hall
2022-01-28 18:33:37 +00:00
parent 49c3fa0f3f
commit c9537b355e
2 changed files with 79 additions and 1 deletions

View File

@ -306,7 +306,9 @@ class test(Command):
raise RuntimeError("No build directory. Run `python setup.py build` before trying to run tests.")
os.environ['GRAMPS_RESOURCES'] = '.'
all_tests = unittest.TestLoader().discover('.', pattern='*_test.py')
unittest.TextTestRunner(verbosity=self.verbose).run(all_tests)
result = unittest.TextTestRunner(verbosity=self.verbose).run(all_tests)
if not result.wasSuccessful():
raise SystemExit('ERROR: Unit test failure.')
#-------------------------------------------------------------------------
#