mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-24 17:24:24 +01:00
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: Shared Checks
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
version: 0.7.2
|
|
|
|
- name: Install dependencies
|
|
run: uv sync --frozen --all-extras --python 3.10
|
|
|
|
- uses: pre-commit/action@v3.0.0
|
|
with:
|
|
extra_args: --all-files --verbose
|
|
env:
|
|
SKIP: no-commit-to-branch
|
|
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
os: [ubuntu-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v3
|
|
with:
|
|
enable-cache: true
|
|
version: 0.7.2
|
|
|
|
- name: Install the project
|
|
run: uv sync --frozen --all-extras --python ${{ matrix.python-version }}
|
|
|
|
- name: Run pytest
|
|
run: uv run --no-sync pytest
|
|
continue-on-error: true
|