From 9889db8d1d13d641ae9c3d1d1eb9fe15713b892f Mon Sep 17 00:00:00 2001 From: Antares Date: Sat, 14 Oct 2023 01:10:40 +0800 Subject: [PATCH] issue template, mock test script, noqa --- .github/ISSUE_TEMPLATE/bug.yml | 2 +- .github/ISSUE_TEMPLATE/feature.yml | 2 +- .github/ISSUE_TEMPLATE/question.yml | 6 +++--- cpp/mockTest/runMock.py | 11 +++++++++++ 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 6226a6ed2..ef561faf2 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -1,6 +1,6 @@ name: Bug Report description: 提交一份错误报告 -labels: ["t:bug"] +labels: ["t: bug"] body: - type: checkboxes diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index f877f8ed4..f61478670 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -1,6 +1,6 @@ name: feature request description: 申请新特性 -labels: ["t:enhancement"] +labels: ["t: enhancement"] body: - type: markdown diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml index 185d3fefe..f7c3c173f 100644 --- a/.github/ISSUE_TEMPLATE/question.yml +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -1,6 +1,6 @@ -name: 使用相关的问题 -description: 问题 -labels: ["t:question"] +name: question +description: 使用相关问题 +labels: ["t: question"] body: - type: textarea diff --git a/cpp/mockTest/runMock.py b/cpp/mockTest/runMock.py index c3b16cfc8..232eec267 100755 --- a/cpp/mockTest/runMock.py +++ b/cpp/mockTest/runMock.py @@ -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)):