Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit a6b6b7e

Browse files
committed
mkdir
1 parent 7c0bb85 commit a6b6b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.actions/assistant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def bash_test(folder: str, output_file: str = PATH_SCRIPT_TEST) -> Optional[str]
379379
pub_ipynb = os.path.join(DIR_NOTEBOOKS, f"{folder}.ipynb")
380380
pub_meta = pub_ipynb.replace(".ipynb", ".yaml")
381381
# copy and add meta config
382-
cmd += [f"cp {meta_file} {pub_meta}", f"cat {pub_meta}", f"git add {pub_meta}"]
382+
cmd += [f"mkdir -p {os.path.dirname(pub_meta)}", f"cp {meta_file} {pub_meta}", f"cat {pub_meta}", f"git add {pub_meta}"]
383383
warn("Invalid notebook's accelerator for this device. So no tests will be run!!!", RuntimeWarning)
384384
# deactivate and clean local environment
385385
cmd += ["deactivate", f"rm -rf {os.path.join(folder, 'venv')}"]

0 commit comments

Comments
 (0)