Skip to content

Adding test with MCP client for tool response #80

Adding test with MCP client for tool response

Adding test with MCP client for tool response #80

Workflow file for this run

---
name: Test
on:
pull_request:
paths:
- pyproject.toml
- Dockerfile
- "*.py"
- tests/**
- tools/**
- utils/**
workflow_call:
workflow_dispatch:
concurrency:
group: "tests-${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read # required for actions/checkout
env:
SYSDIG_MCP_API_HOST: ${{ vars.SYSDIG_MCP_API_HOST }}
SYSDIG_MCP_TRANSPORT: ${{ vars.SYSDIG_MCP_TRANSPORT }}
SYSDIG_MCP_API_SECURE_TOKEN: ${{ secrets.SYSDIG_MCP_API_SECURE_TOKEN }}
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.7.17"
- name: Download dependencies
run: make init
- name: Run ruff
run: make lint
- name: Start MCP server in the background
run: |
make start-server-background
- name: Run MCP client
run: |
make test