Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Aschlean/test exc ratelimiting #8

Aschlean/test exc ratelimiting

Aschlean/test exc ratelimiting #8

Workflow file for this run

name: Tests
permissions:
contents: read
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
env:
# Disable update notifications in CI
NO_UPDATE_NOTIFIER: "1"
# Set test mode for MCP Testing Framework
MCP_TEST_MODE: "1"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[ci]
- name: Run tests
run: |
python -m pytest tests/ -v --cov=test_mcp --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run ruff format check
run: ruff format --check src/
- name: Run ruff lint
run: ruff check src/ --exit-zero