mirror of
				https://github.com/gsi-upm/soil
				synced 2025-10-31 15:48:16 +00:00 
			
		
		
		
	Fix CI. Skip testing long examples
This commit is contained in:
		| @@ -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: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user