Skip to content

Commit

Permalink
Fix codecov test results (#171)
Browse files Browse the repository at this point in the history
* 💚 fix code coverage test

* 📝 improve issue templates
  • Loading branch information
MotacillaAlba authored Feb 23, 2025
1 parent c89dd02 commit 4dddd54
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 54 deletions.
3 changes: 0 additions & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -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"
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug_report.md
Original file line number Diff line number Diff line change
@@ -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.
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature_request.md
Original file line number Diff line number Diff line change
@@ -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**
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 4dddd54

Please sign in to comment.