ci: add workflow to create Q&A discussion for testing #8
This file contains hidden or 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: 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 |