Skip to content

feat: add MCP tools for gateway v0.2.0-v0.4.0 features #34

feat: add MCP tools for gateway v0.2.0-v0.4.0 features

feat: add MCP tools for gateway v0.2.0-v0.4.0 features #34

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "1.8.4"
# DOCKER_IMAGE: selfpatch/ros2-medkit-mcp
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install project
run: poetry install --no-interaction
- name: Run tests
run: poetry run python run_tests.py -v --tb=short
- name: Lint with ruff
run: poetry run ruff check src/ tests/
- name: Check formatting with ruff
run: poetry run ruff format --check src/ tests/
- name: Type check with mypy
run: poetry run mypy src/
docker:
name: Build Docker Image
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: ros2-medkit-mcp:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max