Skip to content

Refresh README badges and surface the new MCP features #9

Refresh README badges and surface the new MCP features

Refresh README badges and surface the new MCP features #9

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Install
run: uv sync --frozen
- name: Ruff format check
run: uv run ruff format --check src tests
- name: Ruff lint
run: uv run ruff check src tests
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install
run: uv sync --frozen
- name: Run tests
run: uv run pytest -ra
docker:
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v6
with:
context: .
push: false
load: true
tags: teslamate-mcp:ci
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Smoke test CLI inside image
run: docker run --rm teslamate-mcp:ci teslamate-mcp list-tools