Skip to content

Commit b3590a9

Browse files
authored
Enhance CI workflow with coverage reporting and update README badges (#2)
* Enhance CI workflow with coverage reporting and update README badges * Refactor PR autolabeler workflow configuration
1 parent b93d5e1 commit b3590a9

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ jobs:
3535
python -m pip install -e .[dev]
3636
3737
- name: Run tests
38-
run: python -m pytest -q
38+
run: python -m pytest -q --cov=src/commit_check_mcp --cov-report=xml
39+
40+
- name: Upload coverage
41+
if: matrix.python-version == '3.12'
42+
uses: codecov/codecov-action@v5
43+
with:
44+
files: ./coverage.xml
3945

4046
build:
4147
runs-on: ubuntu-24.04

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# commit-check-mcp
22

3+
[![PyPI version](https://img.shields.io/pypi/v/commit-check-mcp)](https://pypi.org/project/commit-check-mcp/)
4+
[![Python versions](https://img.shields.io/pypi/pyversions/commit-check-mcp)](https://pypi.org/project/commit-check-mcp/)
5+
[![Build](https://github.com/commit-check/commit-check-mcp/actions/workflows/main.yml/badge.svg)](https://github.com/commit-check/commit-check-mcp/actions/workflows/main.yml)
6+
[![Coverage](https://codecov.io/gh/commit-check/commit-check-mcp/graph/badge.svg)](https://codecov.io/gh/commit-check/commit-check-mcp)
7+
[![MCP server](https://img.shields.io/badge/MCP-server-0A7B83)](https://modelcontextprotocol.io/)
8+
39
Model Context Protocol (MCP) server for [commit-check](https://github.com/commit-check/commit-check).
410

511
`commit-check-mcp` exposes `commit-check` as local MCP tools so an MCP client can validate commit messages, branch names, author info, and repository state.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ dynamic = ["version"]
1919

2020
[project.optional-dependencies]
2121
dev = [
22-
"pytest>=9.0.0,<10"
22+
"pytest>=9.0.0,<10",
23+
"pytest-cov>=6.0.0,<7"
2324
]
2425

2526
[project.scripts]

0 commit comments

Comments
 (0)