mirror of
https://github.com/gsi-upm/soil
synced 2024-11-22 03:02:28 +00:00
Fix CI. Skip testing long examples
This commit is contained in:
parent
b41927d7bf
commit
a47ffa815b
@ -18,4 +18,4 @@ build:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
python -m setup.py test
|
python setup.py test
|
@ -17,6 +17,9 @@ def make_example_test(path, config):
|
|||||||
root = os.getcwd()
|
root = os.getcwd()
|
||||||
os.chdir(os.path.dirname(path))
|
os.chdir(os.path.dirname(path))
|
||||||
s = simulation.from_config(config)
|
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)
|
envs = s.run_simulation(dry_run=True)
|
||||||
assert envs
|
assert envs
|
||||||
for env in envs:
|
for env in envs:
|
||||||
|
Loading…
Reference in New Issue
Block a user