Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Nov 3, 2023
2 parents 182dfc8 + a77446c commit efe751c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/test_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ def _potcars_available() -> bool:

class DefectsGeneratorTest(unittest.TestCase):
def setUp(self):
if not _potcars_available() and random.randint(1, 10) != 1:
# on GH Actions, only run the heavy tests 10% of times:
self.heavy_tests = False
if not _potcars_available(): # don't run heavy tests on GH Actions, these are run locally
self.heavy_tests = False # (too slow without multiprocessing etc)
else:
self.heavy_tests = True

Expand Down
5 changes: 2 additions & 3 deletions tests/test_vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ def _check_nupdown_neutral_cell_warning(message):

class DefectDictSetTest(unittest.TestCase):
def setUp(self):
if not _potcars_available() and random.randint(1, 10) != 1:
# on GH Actions, only run the heavy tests 10% of times:
self.heavy_tests = False
if not _potcars_available(): # don't run heavy tests on GH Actions, these are run locally
self.heavy_tests = False # (too slow without multiprocessing etc)
else:
self.heavy_tests = True

Expand Down

0 comments on commit efe751c

Please sign in to comment.