mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
Add tests
This commit is contained in:
parent
29a5c976dd
commit
a5796c93b9
1 changed files with 38 additions and 0 deletions
38
.github/workflows/run-tests.yml
vendored
Normal file
38
.github/workflows/run-tests.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
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
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: download uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
|
||||
- name: Install FastMCP
|
||||
run: uv pip install -e ".[dev]" --system
|
||||
|
||||
- name: Run tests
|
||||
run: pytest -n auto -vv -s
|
||||
if: ${{ !(github.event.pull_request.head.repo.fork) }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue