| 1 | name: Validate |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | push: |
| 6 | branches: |
| 7 | - main |
| 8 | |
| 9 | permissions: {} |
| 10 | |
| 11 | jobs: |
| 12 | tests: |
| 13 | runs-on: ubuntu-latest |
| 14 | permissions: |
| 15 | contents: read |
| 16 | steps: |
| 17 | - name: Checkout |
| 18 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 19 | with: |
| 20 | persist-credentials: false |
| 21 | |
| 22 | - name: Install uv |
| 23 | uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 |
| 24 | |
| 25 | - name: Set up Python |
| 26 | run: uv python install 3.12 |
| 27 | |
| 28 | - name: Run test suite |
| 29 | run: uv run pytest --cov --cov-report=term-missing |
| 30 | |
| 31 | eval: |
| 32 | runs-on: ubuntu-latest |
| 33 | permissions: |
| 34 | contents: read |
| 35 | steps: |
| 36 | - name: Checkout |
| 37 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 38 | with: |
| 39 | persist-credentials: false |
| 40 | |
| 41 | - name: Install uv |
| 42 | uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 |
| 43 | |
| 44 | - name: Set up Python |
| 45 | run: uv python install 3.12 |
| 46 | |
| 47 | - name: Score research quality |
| 48 | run: uv run pytest tests/eval -x -s |
| 49 | |
| 50 | mcp-tests: |
| 51 | runs-on: ubuntu-latest |
| 52 | permissions: |
| 53 | contents: read |
| 54 | steps: |
| 55 | - name: Checkout |
| 56 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 57 | with: |
| 58 | persist-credentials: false |
| 59 | |
| 60 | - name: Set up Go |
| 61 | uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 |
| 62 | with: |
| 63 | go-version: "1.25.5" |
| 64 | cache-dependency-path: mcp/go.sum |
| 65 | |
| 66 | - name: Run MCP Go tests |
| 67 | run: go test -race ./... |
| 68 | working-directory: mcp |
| 69 |