File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -522,15 +522,8 @@ def install_github_actions(override_formatter_check: bool = False) -> None: # n
522522 workflows_path .mkdir (parents = True , exist_ok = True )
523523 from importlib .resources import files
524524
525- benchmark_mode = False
526525 benchmarks_root = config .get ("benchmarks_root" , "" ).strip ()
527- if benchmarks_root and benchmarks_root != "" :
528- benchmark_mode = inquirer_wrapper (
529- inquirer .confirm ,
530- message = "⚡️It looks like you've configured a benchmarks_root in your config. Would you like to run the Github action in benchmark mode? "
531- " This will show the impact of Codeflash's suggested optimizations on your benchmarks" ,
532- default = True ,
533- )
526+ benchmark_mode = bool (benchmarks_root )
534527
535528 optimize_yml_content = (
536529 files ("codeflash" ).joinpath ("cli_cmds" , "workflows" , "codeflash-optimize.yaml" ).read_text (encoding = "utf-8" )
@@ -686,7 +679,6 @@ def customize_codeflash_yaml_content(
686679
687680 # Add codeflash command
688681 codeflash_cmd = get_codeflash_github_action_command (dep_manager )
689-
690682 if benchmark_mode :
691683 codeflash_cmd += " --benchmark"
692684 return optimize_yml_content .replace ("{{ codeflash_command }}" , codeflash_cmd )
You can’t perform that action at this time.
0 commit comments