Skip to content

Commit 69975c2

Browse files
authored
ci: add codecov coverage and test results upload (#476)
1 parent 5c11d2d commit 69975c2

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
branches: [main]
77
pull_request:
8-
branches: [main]
98

109
permissions:
1110
contents: read

.github/workflows/pytest.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
branches: [main]
77
pull_request:
8-
branches: [main]
98

109
permissions:
1110
contents: read
@@ -19,4 +18,14 @@ jobs:
1918
with:
2019
enable-cache: true
2120
- name: Run tests with coverage
22-
run: uv run pytest -n auto --cov=autowsgr --cov-report=term-missing
21+
run: uv run pytest -n auto --cov=autowsgr --cov-report=xml --cov-report=term-missing --junitxml=junit.xml
22+
- name: Upload coverage to Codecov
23+
uses: codecov/codecov-action@v5
24+
with:
25+
token: ${{ secrets.CODECOV_TOKEN }}
26+
slug: OpenWSGR/AutoWSGR
27+
- name: Upload test results to Codecov
28+
if: ${{ !cancelled() }}
29+
uses: codecov/test-results-action@v1
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 项目简介
66

7-
![Repo Size](https://img.shields.io/github/repo-size/OpenWSGR/AutoWSGR) ![Pypi Version](https://img.shields.io/pypi/v/autowsgr) ![Pypi Downloads](https://img.shields.io/pypi/dm/autowsgr) ![Github Issues](https://img.shields.io/github/issues/OpenWSGR/AutoWSGR) ![Github Last Commit](https://img.shields.io/github/last-commit/OpenWSGR/AutoWSGR) [![License](https://img.shields.io/badge/license-OpenWSGR%20Strict%20NC-red.svg)](LICENSE)
7+
![Repo Size](https://img.shields.io/github/repo-size/OpenWSGR/AutoWSGR) ![Pypi Version](https://img.shields.io/pypi/v/autowsgr) ![Pypi Downloads](https://img.shields.io/pypi/dm/autowsgr) ![Github Issues](https://img.shields.io/github/issues/OpenWSGR/AutoWSGR) ![Github Last Commit](https://img.shields.io/github/last-commit/OpenWSGR/AutoWSGR) [![Codecov](https://codecov.io/gh/OpenWSGR/AutoWSGR/graph/badge.svg)](https://codecov.io/gh/OpenWSGR/AutoWSGR) [![License](https://img.shields.io/badge/license-OpenWSGR%20Strict%20NC-red.svg)](LICENSE)
88

99
用 Python 与 C++ 实现的 战舰少女R 的自动化流水线 & 数据统计一体化脚本, 提供 `WSGR` 游戏级别接口以及部分图像和原子操作接口。
1010

0 commit comments

Comments
 (0)