File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,15 +59,16 @@ def upload_kernels_dir(
5959 delete_patterns .add (f"{ build_variant .name } /**" )
6060
6161 # in the case we have variants, upload to the same as the kernel_dir
62- upload_folder (
63- repo_id = repo_id ,
64- folder_path = kernel_dir / "benchmarks" ,
65- revision = branch ,
66- path_in_repo = "benchmarks" ,
67- delete_patterns = ["benchmark*.py" ],
68- commit_message = "Benchmarks uploaded using `kernels`." ,
69- allow_patterns = ["benchmark*.py" ],
70- )
62+ if (kernel_dir / "benchmarks" ).is_dir ():
63+ upload_folder (
64+ repo_id = repo_id ,
65+ folder_path = kernel_dir / "benchmarks" ,
66+ revision = branch ,
67+ path_in_repo = "benchmarks" ,
68+ delete_patterns = ["benchmark*.py" ],
69+ commit_message = "Benchmarks uploaded using `kernels`." ,
70+ allow_patterns = ["benchmark*.py" ],
71+ )
7172
7273 upload_folder (
7374 repo_id = repo_id ,
You can’t perform that action at this time.
0 commit comments