Merge pull request #47 from jlowin/warning-and-flake #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
env: | |
# enable colored output | |
PY_COLORS: 1 | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- "src/**" | |
- "tests/**" | |
- "uv.lock" | |
- "pyproject.toml" | |
- ".github/workflows/**" | |
pull_request: | |
paths: | |
- "src/**" | |
- "tests/**" | |
- "uv.lock" | |
- "pyproject.toml" | |
- ".github/workflows/**" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
run_tests: | |
name: "Run tests: Python ${{ matrix.python-version }} on ${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ["3.10"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install FastMCP | |
run: uv sync --extra tests | |
- name: Run tests | |
run: uv run pytest -vv | |
if: ${{ !(github.event.pull_request.head.repo.fork) }} |