Files
ericmey-comfyui-immich/.github/workflows/ci.yml
T
Eric MeyandClaude Opus 4.6 82e3c4f8f5 feat: add CI, auto-release, and tests
- CI workflow: ruff lint/format, pytest across Python 3.10/3.12/3.13
- Auto-release workflow: conventional commits drive semver bumps
- 11 unit tests covering env parsing, multipart encoding, metadata embedding, upload flow
- pyproject.toml with ruff/mypy/pytest config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 23:04:57 -04:00

52 lines
965 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install tools
run: pip install ruff
- name: Ruff lint
run: ruff check .
- name: Ruff format check
run: ruff format --check .
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install pytest numpy Pillow
- name: Run tests
run: pytest -q