@@ -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 }}
0 commit comments