1
0
mirror of https://github.com/gsi-upm/soil synced 2024-12-22 08:18:13 +00:00

Fix CI. Skip testing long examples

This commit is contained in:
J. Fernando Sánchez 2018-12-08 20:49:34 +01:00
parent b41927d7bf
commit a47ffa815b
2 changed files with 4 additions and 1 deletions

View File

@ -18,4 +18,4 @@ build:
test:
script:
python -m setup.py test
python setup.py test

View File

@ -17,6 +17,9 @@ def make_example_test(path, config):
root = os.getcwd()
os.chdir(os.path.dirname(path))
s = simulation.from_config(config)
iterations = s.max_time * s.num_trials
if iterations > 1000:
self.skipTest('This example would probably take too long')
envs = s.run_simulation(dry_run=True)
assert envs
for env in envs: