Skip to content

Commit 03f9f80

Browse files
committed
fix hirerachy of execution
1 parent aef7b81 commit 03f9f80

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

ci/utils/notebook_command_extractor.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def extract_shell_commands(notebook_path: str) -> List[str]:
7878
"mv",
7979
"unzip",
8080
"tar",
81+
"apt-get",
82+
"apt",
8183
]
8284

8385
for cell in notebook.get("cells", []):
@@ -250,20 +252,20 @@ def main():
250252
success_count = 0
251253
total_count = 0
252254

253-
if pip_commands:
254-
print(f"\nExecuting {len(pip_commands)} pip install commands...")
255-
for cmd in pip_commands:
256-
if execute_pip_command(cmd, args.verbose):
257-
success_count += 1
258-
total_count += 1
259-
260255
if shell_commands:
261256
print(f"\nExecuting {len(shell_commands)} shell commands...")
262257
for cmd in shell_commands:
263258
if execute_shell_command(cmd, args.verbose):
264259
success_count += 1
265260
total_count += 1
266261

262+
if pip_commands:
263+
print(f"\nExecuting {len(pip_commands)} pip install commands...")
264+
for cmd in pip_commands:
265+
if execute_pip_command(cmd, args.verbose):
266+
success_count += 1
267+
total_count += 1
268+
267269
if total_count > 0:
268270
print(
269271
f"\nExecution summary: {success_count}/{total_count} commands succeeded"

0 commit comments

Comments
 (0)