diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index d901878..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,79 +0,0 @@ -name: MCP Tests - -on: - push: - branches: - pull_request: - -jobs: - ########################################################################### - # 1 - Local integration tests (always run) - ########################################################################### - local: - runs-on: ubuntu-latest - - # Dummy key lets the clients authenticate against the local servers. - env: - API_KEY: ci-test-key - - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - with: - python-version: "3.11" - - # Optional: cache wheels to speed up numpy / scipy installs - - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements-dev.txt - - - name: Run pytest (local transports) - run: pytest -q - - - ########################################################################### - # 2 - Remote smoke-test (only when secrets are set) - # - # • Put MCP_SERVER_URL → “https://.herokuapp.com” - # • Put API_KEY → same key you set as Heroku config var - # - # The fixture auto-skips the remote case if these are missing, so - # the job is conditionally *created* only when both secrets exist. - ########################################################################### - remote: - if: ${{ secrets.MCP_SERVER_URL != '' && secrets.API_KEY != '' }} - runs-on: ubuntu-latest - - env: - MCP_SERVER_URL: ${{ secrets.MCP_SERVER_URL }} - API_KEY: ${{ secrets.API_KEY }} - - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - with: - python-version: "3.11" - - - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - # We reuse the *same* test-suite; the fixture detects MCP_SERVER_URL - # and adds the “remote” parameter automatically. - - name: Run pytest (remote smoke) - run: pytest -q diff --git a/README.md b/README.md index 60fa8fb..cc52fc5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Heroku MCP Code Execution - Python - [Heroku MCP Code Execution - Python](#heroku-mcp-code-execution---python) - - [Automatic Deployment](#automatic-deployment) + - [Automatic Deployment (Recommended)](#automatic-deployment-recommended) - [Manual Deployment](#manual-deployment) - [**Set Required Environment Variables from Heroku CLI**](#set-required-environment-variables-from-heroku-cli) - [Local Testing](#local-testing) @@ -18,7 +18,7 @@ - [2. Remote STDIO - Direct Calls to One-Off Dyno](#2-remote-stdio---direct-calls-to-one-off-dyno) - [3. Coming Soon - Heroku MCP Gateway!](#3-coming-soon---heroku-mcp-gateway) -## Automatic Deployment +## Automatic Deployment (Recommended) [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/heroku/mcp-code-exec-python)