mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-24 17:24:24 +01:00
30 lines
551 B
YAML
30 lines
551 B
YAML
name: ruff
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v3
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: "Set up Python"
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version-file: ".python-version"
|
|
|
|
- name: Install the project
|
|
run: uv sync --frozen --all-extras --dev
|
|
|
|
- name: Run ruff format check
|
|
run: uv run --frozen ruff check .
|