Skip to content

chore: 添加 scripts 目录到 gitignore #20

chore: 添加 scripts 目录到 gitignore

chore: 添加 scripts 目录到 gitignore #20

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: Lint with Ruff
run: uv run ruff check mcp_documents_reader.py tests
- name: Check formatting with Ruff
run: uv run ruff format --check mcp_documents_reader.py tests
- name: Type check with Basedpyright
run: uv run basedpyright mcp_documents_reader.py
- name: Test with pytest
run: uv run pytest --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false