Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
issue template, mock test script, noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
Antares0982 committed Oct 13, 2023
1 parent 844cab4 commit 9889db8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug Report
description: 提交一份错误报告
labels: ["t:bug"]
labels: ["t: bug"]

body:
- type: checkboxes
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: feature request
description: 申请新特性
labels: ["t:enhancement"]
labels: ["t: enhancement"]

body:
- type: markdown
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 使用相关的问题
description: 问题
labels: ["t:question"]
name: question
description: 使用相关问题
labels: ["t: question"]

body:
- type: textarea
Expand Down
11 changes: 11 additions & 0 deletions cpp/mockTest/runMock.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ def setup_lib_path(_lib_path):
with open(cfg_file, 'w', encoding='utf-8') as f:
f.write(cfg_content.format(_lib_path))

subprocess.check_output(
f"cmake --build {_lib_path} --target MiraiCP_mock_test",
shell=True,
stderr=subprocess.STDOUT,
)
subprocess.check_output(
f"cmake --build {_lib_path} --target Loader",
shell=True,
stderr=subprocess.STDOUT,
)


if __name__ == "__main__":
if os.path.exists(os.path.join(currentFilePath, logfile)):
Expand Down

0 comments on commit 9889db8

Please sign in to comment.