Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: CI

on:
push:
branches:
- "**"
pull_request:

jobs:
lint:
name: Ruff Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"

- name: Install dependencies
run: uv sync --all-groups --frozen

- name: Ruff check
run: uv run ruff check .

format:
name: Ruff Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"

- name: Install dependencies
run: uv sync --all-groups --frozen

- name: Ruff format check
run: uv run ruff format . --check

pytest:
name: Pytest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"

- name: Install dependencies
run: uv sync --all-groups --frozen

- name: Run tests
working-directory: mcp-server-python
run: uv run pytest tests -q

pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"

- name: Install dependencies
run: uv sync --all-groups --frozen

- name: Run pre-commit
run: uv run pre-commit run --all-files --show-diff-on-failure
24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# Node
node_modules/
/.venv/

# Python virtual environments
.venv/
venv/
env/
ENV/
*.egg-info/
dist/
build/

# Python cache
__pycache__/
*.py[cod]
*$py.class
*.so

# Testing
.pytest_cache/
.hypothesis/
.coverage
htmlcov/
*.cover
.tox/

# Environment files
.env
Expand Down
Loading
Loading