Use GitHub Actions to run continuous integration checks

This commit is contained in:
Nick Hall
2021-05-30 18:57:28 +01:00
parent 442f696abd
commit f3e536da6c
4 changed files with 102 additions and 1 deletions

View File

@ -219,7 +219,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.')
#-------------------------------------------------------------------------
#