Skip to content

Commit 96f52ed

Browse files
committed
setup cov
1 parent 59a381a commit 96f52ed

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ jobs:
3131
pip install -e ".[dev]"
3232
pip install -e ".[test]"
3333
34-
- name: Run tests
34+
- name: Run lint and typecheck
3535
run: |
36-
make test
36+
make lint typecheck
37+
38+
- name: Run tests with coverage
39+
run: |
40+
pytest --cov --cov-report=xml
41+
42+
- name: Upload coverage to Codecov
43+
uses: codecov/codecov-action@v5
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# MCP Shell Server
22

3+
[![codecov](https://codecov.io/gh/tumf/mcp-shell-server/branch/main/graph/badge.svg)](https://codecov.io/gh/tumf/mcp-shell-server)
4+
35
A secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.
46

57
## Features

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test = [
2121
"pytest>=7.4.0",
2222
"pytest-asyncio>=0.23.0",
2323
"pytest-env>=1.1.0",
24-
"pytest-cov>=4.1.0",
24+
"pytest-cov>=6.0.0",
2525
]
2626
dev = [
2727
"ruff>=0.0.262",
@@ -68,4 +68,4 @@ line_length = 88
6868
path = "src/mcp_shell_server/version.py"
6969

7070
[tool.hatch.build.targets.wheel]
71-
packages = ["src/mcp_shell_server"]
71+
packages = ["src/mcp_shell_server"]

uv.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)