fastmcp/.github/workflows/run-tests.yml
2024-11-30 09:11:42 -05:00

35 lines
605 B
YAML

name: Run tests
env:
# enable colored output
PY_COLORS: 1
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
run_tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install 3.11
- name: Install FastMCP
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest -n auto -vv
if: ${{ !(github.event.pull_request.head.repo.fork) }}