feat: add CI and publish workflows for container image

This commit is contained in:
2026-08-02 16:07:38 -04:00
parent eee315fe3d
commit a04bd8dedb
2 changed files with 88 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install ruff
- run: ruff check src/
- run: ruff format --check src/
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
- run: pip install -r requirements.txt
- name: Verify imports
run: python -c "from src.server import mcp; print('OK:', mcp.name)"
docker:
runs-on: ubuntu-latest
needs: [lint, build]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
push: false
tags: poke-mail:test