feat: complete full quantitative trading MCP #1
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: MCP CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| paths: | |
| - 'mcp_server/**' | |
| - 'backend_api_python/app/routes/agent_v1/**' | |
| - 'backend_api_python/app/services/ai_tool_registry.py' | |
| - 'docs/agent/agent-openapi.json' | |
| - '.github/workflows/mcp-ci.yml' | |
| pull_request: | |
| branches: [main, master] | |
| paths: | |
| - 'mcp_server/**' | |
| - 'backend_api_python/app/routes/agent_v1/**' | |
| - 'backend_api_python/app/services/ai_tool_registry.py' | |
| - 'docs/agent/agent-openapi.json' | |
| - '.github/workflows/mcp-ci.yml' | |
| concurrency: | |
| group: mcp-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-and-build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| cache-dependency-path: mcp_server/pyproject.toml | |
| - name: Install MCP package | |
| run: python -m pip install --disable-pip-version-check -e './mcp_server[dev]' | |
| - name: Run MCP tests | |
| run: python -m pytest mcp_server/tests -q | |
| - name: Build package | |
| if: matrix.python-version == '3.12' | |
| run: python -m build mcp_server |