Skip to content

Commit d35b1a7

Browse files
authored
ci: add codecov (#6)
1 parent c4334d3 commit d35b1a7

File tree

2 files changed

+40
-6
lines changed

2 files changed

+40
-6
lines changed

.github/workflows/codecov.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Codecov
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
concurrency:
10+
group: codecov-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
codecov:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 2 # To ensure we have enough history for code coverage
21+
22+
- uses: astral-sh/setup-uv@v6
23+
with:
24+
python-version: 3.12
25+
26+
- name: Test with Python 3.12
27+
run: uv run --frozen pytest --cov --cov-branch --cov-report=xml
28+
29+
- name: Upload coverage to Codecov
30+
uses: codecov/codecov-action@v5
31+
with:
32+
fail_ci_if_error: true
33+
env:
34+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
[![GitHub branch check runs](https://img.shields.io/github/check-runs/mcp-auth/python/master)](https://github.com/mcp-auth/python/actions?query=branch%3Amaster)
44
[![codecov](https://codecov.io/gh/mcp-auth/python/graph/badge.svg?token=JXZ4C50SCV)](https://codecov.io/gh/mcp-auth/python)
5-
[![Stable Version](https://img.shields.io/pypi/v/mcp-auth?label=stable)][PyPI Releases]
6-
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mcp-auth)][PyPI]
7-
[![PyPI - License](https://img.shields.io/pypi/l/mcp-auth)](https://github.com/mcp-auth/python/blob/master/LICENSE)
5+
[![Stable Version](https://img.shields.io/pypi/v/mcpauth?label=stable)][PyPI Releases]
6+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mcpauth)][PyPI]
7+
[![PyPI - License](https://img.shields.io/pypi/l/mcpauth)](https://github.com/mcp-auth/python/blob/master/LICENSE)
88

99
[Website]: https://mcp-auth.dev/
10-
[PyPI]: https://pypi.org/project/mcp-auth/
11-
[PyPI Releases]: https://pypi.org/project/mcp-auth/#history
10+
[PyPI]: https://pypi.org/project/mcpauth/
11+
[PyPI Releases]: https://pypi.org/project/mcpauth/#history
1212

1313
The MCP specification [requires OAuth 2.1 and other RFCs](https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization) to be implemented for authorization. MCP Auth aims to connect your MCP server to **any** compatible OAuth 2 or OpenID Connect provider, without spending hours on lengthy implementations.
1414

@@ -21,7 +21,7 @@ Check out the [MCP-compatible providers](https://mcp-auth.dev/docs/providers-lis
2121
### Installation
2222

2323
```bash
24-
pip install mcp-auth
24+
pip install mcpauth
2525
```
2626

2727
Or use your package manager of choice, such as `poetry` or `uv`.

0 commit comments

Comments
 (0)