mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Update static checks (#1448)
Co-authored-by: nate nowack <thrast36@gmail.com>
This commit is contained in:
parent
dd34846266
commit
9b7bbd2801
24 changed files with 409 additions and 328 deletions
22
.github/workflows/run-static.yml
vendored
22
.github/workflows/run-static.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
6
.github/workflows/run-tests.yml
vendored
6
.github/workflows/run-tests.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue