@@ -257,7 +257,10 @@ def benchmark_results(cls):
257257 results = {"replace_component" : {}, "unique_components" : {}}
258258 yield results
259259
260- # @pytest.mark.skip(reason="skip benchmarks by default")
260+ @pytest .mark .skipif (
261+ os .environ .get ("CI" , "False" ).lower () == "true" ,
262+ reason = "not necessary to test this on CI" ,
263+ )
261264 @pytest .mark .parametrize ("execution_count" , range (10 ))
262265 @pytest .mark .parametrize ("additional_building_templates_count" , [0 , 10 , 50 ])
263266 def test_benchmark_replace_component (self , execution_count , additional_building_templates_count , benchmark_results ):
@@ -285,7 +288,10 @@ def run():
285288 log (f"Average component replacement time for { count } extra templates: { np .average (array ) } (stddev: { np .std (array )} )" )
286289
287290
288- # @pytest.mark.skip(reason="skip benchmarks by default")
291+ @pytest .mark .skipif (
292+ os .environ .get ("CI" , "False" ).lower () == "true" ,
293+ reason = "not necessary to test this on CI" ,
294+ )
289295 @pytest .mark .parametrize ("execution_count" , range (10 ))
290296 @pytest .mark .parametrize ("phantom_objects_count" , [0 , 10 , 100 , 200 ])
291297 def test_benchmark_unique_components (self , execution_count , phantom_objects_count , benchmark_results ):
0 commit comments