Fix CI. Skip testing long examples

exporters
J. Fernando Sánchez 5 years ago
parent b41927d7bf
commit a47ffa815b

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

@ -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:

Loading…
Cancel
Save