fastmcp/.github/workflows/run-static.yml
nate nowack df1dc79c5f
Reduce redundant CI execution while preserving required checks (#5049)
* Reduce redundant CI execution while preserving required checks

Co-Authored-By: GPT-6 via Codex <noreply@openai.com>

* Preserve documentation validation for editorial PRs

Co-Authored-By: GPT-6 via Codex <noreply@openai.com>

---------

Co-authored-by: GPT-6 via Codex <noreply@openai.com>
2026-09-09 00:27:57 -05:00

43 lines
960 B
YAML

name: Run static analysis
env:
PY_COLORS: 1
on:
push:
branches: ["main"]
# run on all pull requests because these checks are required and will block merges otherwise
pull_request:
workflow_dispatch:
# Only newer revisions of the same PR supersede a run. Main and manual runs
# use unique groups so they always complete.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
static_analysis:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup uv
uses: ./.github/actions/setup-uv
with:
resolution: locked
- name: Test workflows
run: node --test .github/scripts/test-*.mjs
- name: Run prek
uses: j178/prek-action@v3.0.0
env:
SKIP: no-commit-to-branch