Skip to content

Commit 5d42e2f

Browse files
chore: 优化徽章显示和覆盖率测试配置
- 修复CI徽章URL,将工作流名称改为"Code Quality" - 更新GitHub Actions工作流,使用--cov-branch参数优化覆盖率测试
1 parent f48deb7 commit 5d42e2f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
pre-commit run --all-files
3030
- name: Run tests with coverage
3131
run: |
32-
pytest tests/ --cov=src.dynamic_params --cov-report=xml
32+
pytest tests/ --cov=src.dynamic_params --cov-branch --cov-report=xml
3333
- name: Upload coverage to Codecov
34-
uses: codecov/codecov-action@v3
34+
uses: codecov/codecov-action@v5
3535
with:
3636
file: ./coverage.xml
3737
flags: unittests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pytest-dynamic-params
22

3-
![CI](https://github.com/ProgrammerChengPei/pytest-dynamic-params/workflows/CI/badge.svg)
3+
![CI](https://github.com/ProgrammerChengPei/pytest-dynamic-params/workflows/Code%20Quality/badge.svg)
44
![Coverage](https://codecov.io/gh/ProgrammerChengPei/pytest-dynamic-params/branch/main/graph/badge.svg)
55
![Version](https://img.shields.io/pypi/v/pytest-dynamic-params.svg)
66
![Downloads](https://img.shields.io/pypi/dm/pytest-dynamic-params.svg)

0 commit comments

Comments
 (0)