mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Run integration tests as separate CI job on Ubuntu only
- Add pytest marker for integration tests - Configure automatic marking for tests/integration_tests/ folder via pytest hook - Split CI workflow into two jobs: regular tests (all platforms) and integration tests (Ubuntu only) - Integration tests can now be retried independently if they fail
This commit is contained in:
parent
5898450284
commit
30912c69c6
3 changed files with 41 additions and 2 deletions
25
.github/workflows/run-tests.yml
vendored
25
.github/workflows/run-tests.yml
vendored
|
|
@ -46,7 +46,28 @@ jobs:
|
|||
- name: Install FastMCP
|
||||
run: uv sync --locked
|
||||
|
||||
- name: Run tests
|
||||
run: uv run pytest tests
|
||||
- name: Run tests (excluding integration)
|
||||
run: uv run pytest tests -m "not integration"
|
||||
|
||||
run_integration_tests:
|
||||
name: "Run integration tests"
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v6
|
||||
with:
|
||||
enable-cache: true
|
||||
cache-dependency-glob: "uv.lock"
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install FastMCP
|
||||
run: uv sync --locked
|
||||
|
||||
- name: Run integration tests
|
||||
run: uv run pytest tests -m "integration"
|
||||
env:
|
||||
FASTMCP_GITHUB_TOKEN: ${{ secrets.FASTMCP_GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue