|
27 | 27 | - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 |
28 | 28 | with: |
29 | 29 | extra_args: --all-files --verbose |
30 | | - env: |
31 | | - SKIP: no-commit-to-branch,readme-v1-frozen |
32 | 30 |
|
33 | 31 | - name: Surface types match vendored schema |
34 | 32 | run: | |
|
42 | 40 | uv run --isolated --no-project --with ./src/mcp-types python -c \ |
43 | 41 | "import mcp_types, mcp_types.jsonrpc, mcp_types.methods, mcp_types.version, mcp_types.v2025_11_25, mcp_types.v2026_07_28" |
44 | 42 |
|
45 | | - # TODO(Max): Drop this in v2. Deliberate updates (e.g. the v2 status |
46 | | - # banner) go through the 'override-readme-freeze' label. |
47 | | - - name: Check README.md is not modified |
48 | | - if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'override-readme-freeze') |
49 | | - run: | |
50 | | - git fetch --no-tags --depth=1 origin "$BASE_SHA" |
51 | | - if git diff --name-only "$BASE_SHA" -- README.md | grep -q .; then |
52 | | - echo "::error::README.md is frozen at v1. Edit README.v2.md instead." |
53 | | - exit 1 |
54 | | - fi |
55 | | - env: |
56 | | - BASE_SHA: ${{ github.event.pull_request.base.sha }} |
57 | | - |
58 | 43 | test: |
59 | 44 | name: test (${{ matrix.python-version }}, ${{ matrix.dep-resolution.name }}, ${{ matrix.os }}) |
60 | 45 | runs-on: ${{ matrix.os }} |
@@ -116,7 +101,7 @@ jobs: |
116 | 101 | run: uv sync --frozen --all-extras --python 3.10 |
117 | 102 |
|
118 | 103 | - name: Check README snippets are up to date |
119 | | - run: uv run --frozen scripts/update_readme_snippets.py --check --readme README.v2.md |
| 104 | + run: uv run --frozen scripts/update_readme_snippets.py --check |
120 | 105 |
|
121 | 106 | # `mkdocs.yml` sets `strict: true` and `pymdownx.snippets: check_paths: true`, |
122 | 107 | # but until this job existed the docs were only ever built post-merge by |
|
0 commit comments