Skip to content

ci: add workflow to create Q&A discussion for testing #8

ci: add workflow to create Q&A discussion for testing

ci: add workflow to create Q&A discussion for testing #8

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Create venv and install dependencies
run: |
uv venv -p ${{ matrix.python-version }}
uv pip install "mcp[cli]>=1.9.0" pytest
- name: Verify server imports
run: uv run --no-project python -c "import server; print('OK')"
- name: Run tests
run: uv run --no-project python -m pytest tests/ -v