diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c5ae1e..067838b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,4 +18,4 @@ build: test: script: - python -m setup.py test \ No newline at end of file + python setup.py test \ No newline at end of file diff --git a/tests/test_examples.py b/tests/test_examples.py index 5c7e00f..671b6b0 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -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: