Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneJiang committed Aug 22, 2023
1 parent 5749af2 commit 228d7de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions_scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ def alicebot_test() -> None:
print(f"result: {result}")# noqa: T201
if result.returncode != 0:
msg = f"脚本执行失败: {result.stdout}"
print(f"msg: {msg}")# noqa: T201
raise ValueError(msg) from None
except subprocess.TimeoutExpired:
print("Script execution timed out!")# noqa: T201
raise
except subprocess.CalledProcessError as e:
msg = f"Script execution failed with error code {e.returncode}"
print(f"msg: {msg}")# noqa: T201
raise ValueError(msg) from e


Expand Down

0 comments on commit 228d7de

Please sign in to comment.