Update static checks (#1448)

Co-authored-by: nate nowack <thrast36@gmail.com>
This commit is contained in:
Jeremiah Lowin 2025-08-11 17:35:41 -04:00 committed by GitHub
commit 9b7bbd2801
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 409 additions and 328 deletions

View file

@ -42,7 +42,29 @@ jobs:
python-version: "3.12"
- name: Install dependencies
run: uv sync --dev
- name: Install just
uses: extractions/setup-just@v3
- name: Check lockfile is up to date
run: |
if ! uv lock --check; then
echo "❌ Lockfile is out of date!"
echo "To update the lockfile, run 'uv lock'."
exit 1
fi
echo "✅ Lockfile is up to date"
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
env:
SKIP: no-commit-to-branch
- name: Check SDK documentation is up to date
run: |
just api-ref-all > /dev/null 2>&1
if ! git diff --quiet docs/python-sdk/ docs/docs.json; then
echo "❌ SDK documentation is out of date!"
echo "Files that were updated:"
git diff --name-only docs/python-sdk/ docs/docs.json
echo ""
echo "Run 'just api-ref-all' and commit the changes."
exit 1
fi
echo "✅ SDK documentation is up to date"

View file

@ -44,7 +44,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install FastMCP
run: uv sync --locked
# run with frozen to use the current lockfile; static checks will determine if it needs updating
run: uv sync --frozen
- name: Run tests (excluding integration and client_process)
run: uv run pytest tests -m "not integration and not client_process"
@ -68,7 +69,8 @@ jobs:
python-version: "3.10"
- name: Install FastMCP
run: uv sync --locked
# run with frozen to use the current lockfile; static checks will determine if it needs updating
run: uv sync --frozen
- name: Run integration tests
run: uv run pytest tests -m "integration"