From 4dddd541070a91c3d0d115f7238a7de1f93f0fce Mon Sep 17 00:00:00 2001 From: MotacillaAlba <32129456+MotacillaAlba@users.noreply.github.com> Date: Sun, 23 Feb 2025 22:27:53 +0800 Subject: [PATCH] Fix codecov test results (#171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 💚 fix code coverage test * 📝 improve issue templates --- .codecov.yml | 3 -- .github/ISSUE_TEMPLATE/1-bug_report.md | 45 +++++++++++++++++++++ .github/ISSUE_TEMPLATE/2-feature_request.md | 23 +++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 30 -------------- .github/ISSUE_TEMPLATE/feature_request.md | 20 --------- .github/workflows/test_modules.yml | 2 +- 6 files changed, 69 insertions(+), 54 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/1-bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/2-feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.codecov.yml b/.codecov.yml index 505e0e4..7669800 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,6 +1,3 @@ ignore: - - "tactics2d/dataset_parser/womd_proto" - - "tactics2d/dataset_parser/parse_womd.py" - - "tactics2d/dataset_parser/parse_nuplan.py" - "tactics2d/traffic/scenario_display.py" - "tactics2d/map/parser/fix_osm.py" diff --git a/.github/ISSUE_TEMPLATE/1-bug_report.md b/.github/ISSUE_TEMPLATE/1-bug_report.md new file mode 100644 index 0000000..3337480 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/1-bug_report.md @@ -0,0 +1,45 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "🐛 Bug: " +labels: bug +assignees: '' + +--- + +您可以使用中文描述Bug。 +You are welcome to describe the bug in English. + +**描述Bug** +**Describe the bug** + +- 操作系统版本 (OS version): +- Python版本 (Python version): + +**简单描述你遇到的Bug** +**A clear and concise description of what the bug is.** + +**如何重现错误** +**To Reproduce** +我们该如何复现Bug? +Steps to reproduce the behavior: + +**预期代码表现** +**Expected behavior** +简单描述你原本想通过这些操作达到的效果。 +A clear and concise description of what you expected to happen. + +**报错信息** +**Error Message** +如果方便,请用代码格式提供命令行输出的报错信息。 +If applicable, paste the complete error message to help explain your problem. + +**截图信息** +**Screenshots** +如果方便,请提供与Bug相关的截图。 +If applicable, add screenshots to help explain your problem. + +**其他信息** +**Additional context** +欢迎补充任何有助于更快定位问题的线索。 +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/2-feature_request.md b/.github/ISSUE_TEMPLATE/2-feature_request.md new file mode 100644 index 0000000..b1ea132 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/2-feature_request.md @@ -0,0 +1,23 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: "✨ Feat: " +labels: enhancement +assignees: '' + +--- + +您可以使用中文描述希望增加的功能。 +You are welcome to describe the desired feature in English. + +**你希望增加的功能是否与任何想要解决的问题/任务相关?** +**Is your feature request related to a problem? Please describe.** + +**描述你预期的解决方案** +**Describe the solution you'd like** + +**描述你可以接受的其他方案** +**Describe alternatives you've considered** + +**其他信息** +**Additional context** diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 89e4a6a..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: "\U0001F41B Bug: " -labels: bug -assignees: '' - ---- - -**Describe the bug** - -- OS version -- Python version - -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Error Message** -If applicable, paste the complete error message to help explain your problem. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index f194329..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: "✨ Feat:" -labels: enhancement -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/test_modules.yml b/.github/workflows/test_modules.yml index 13ec044..a5eeb15 100644 --- a/.github/workflows/test_modules.yml +++ b/.github/workflows/test_modules.yml @@ -39,7 +39,7 @@ jobs: - name: Pytest run: | mkdir ./tests/runtime - pytest tests --cov=tactics2d --cov-report=xml + pytest tests --cov=tests --cov-report=xml - name: Upload coverage reports to Codecov (Ubuntu) uses: codecov/codecov-action@v4 if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'