Skip to content

Commit 075f8f7

Browse files
authored
Merge branch 'main' into devin/1744788689-fix-e2e-tests
2 parents b663f93 + 4c13064 commit 075f8f7

File tree

4 files changed

+54
-18
lines changed

4 files changed

+54
-18
lines changed

.codecov.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
precision: 2
6+
round: down
7+
range: "70...100"
8+
status:
9+
project:
10+
default:
11+
target: auto
12+
threshold: 0%
13+
patch:
14+
default:
15+
target: auto
16+
threshold: 0%
17+
18+
comment:
19+
layout: "reach,diff,flags,files,footer"
20+
behavior: default
21+
require_changes: no

.github/workflows/test.yml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,28 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- name: Set up Python 3.12
15-
uses: actions/setup-python@v5
16-
with:
17-
python-version: '3.12'
18-
- name: Install dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install pytest pytest-asyncio pytest-cov
22-
pip install -e .
23-
- name: Run tests with coverage
24-
run: |
25-
pytest --cov=web3_mcp --cov-report=xml --cov-report=term
26-
env:
27-
ANKR_ENDPOINT: ${{ secrets.ANKR_ENDPOINT }}
28-
ANKR_PRIVATE_KEY: ${{ secrets.ANKR_PRIVATE_KEY }}
29-
- name: Upload coverage to Codecov
30-
uses: codecov/codecov-action@v3
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python 3.12
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
cache: 'pip'
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install pytest-cov codecov
25+
pip install -e .
26+
27+
- name: Run tests with coverage
28+
run: |
29+
pytest --cov=web3_mcp --cov-report=xml --cov-report=term
30+
31+
- name: Upload coverage to Codecov
32+
uses: codecov/codecov-action@v4
33+
with:
34+
file: ./coverage.xml
35+
fail_ci_if_error: false
36+
# Token is optional for public repositories
37+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ wheels/
88

99
# Virtual environments
1010
.venv
11+
12+
# Coverage reports
13+
coverage.xml
14+
.coverage
15+
htmlcov/

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Web3 MCP
22

3+
[![Tests](https://github.com/tumf/web3-mcp/actions/workflows/test.yml/badge.svg)](https://github.com/tumf/web3-mcp/actions/workflows/test.yml)
4+
[![codecov](https://codecov.io/gh/tumf/web3-mcp/branch/main/graph/badge.svg)](https://codecov.io/gh/tumf/web3-mcp)
5+
36
An MCP server implementation wrapping Ankr Advanced API.
47

58
## Overview

0 commit comments

Comments
 (0)