Skip to content

Commit 9713726

Browse files
feat: add code-coverage badge
1 parent 5ed691b commit 9713726

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,11 @@ jobs:
7171
run: poetry install
7272

7373
- name: Unit tests
74-
run: poetry run pytest tests/unit/ --tb=short --cov=memweave --cov-report=term-missing --cov-fail-under=70
74+
run: poetry run pytest tests/unit/ --tb=short --cov=memweave --cov-report=term-missing --cov-report=xml --cov-fail-under=70
75+
76+
- name: Upload coverage to Codecov
77+
uses: codecov/codecov-action@v5
78+
with:
79+
token: ${{ secrets.CODECOV_TOKEN }}
80+
files: coverage.xml
81+
fail_ci_if_error: false

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[![PyPI Downloads](https://static.pepy.tech/personalized-badge/memweave?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/memweave)
77
[![Python](https://img.shields.io/pypi/pyversions/memweave)](https://pypi.org/project/memweave/)
88
[![CI](https://github.com/sachinsharma9780/memweave/actions/workflows/ci.yml/badge.svg)](https://github.com/sachinsharma9780/memweave/actions/workflows/ci.yml)
9+
[![codecov](https://codecov.io/gh/sachinsharma9780/memweave/branch/main/graph/badge.svg)](https://codecov.io/gh/sachinsharma9780/memweave)
910
[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1011
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
1112
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)