Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 26 additions & 5 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
permissions:
contents: read

env:
UV_VERSION: "0.13.5"

jobs:
quality:
runs-on: ubuntu-latest
Expand All @@ -17,11 +20,7 @@ jobs:
with:
enable-cache: true
python-version: "3.12"
version: "0.11.25"
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends ffmpeg
version: ${{ env.UV_VERSION }}
- name: Install dependencies
run: uv sync --locked --all-groups
- name: Lint
Expand All @@ -30,5 +29,27 @@ jobs:
run: uv run ruff format --check .
- name: Type check
run: uv run ty check
- name: Build
run: uv build

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
version: ${{ env.UV_VERSION }}
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends ffmpeg
- name: Install dependencies
run: uv sync --locked --all-groups
- name: Test
run: uv run pytest
2 changes: 1 addition & 1 deletion maestro_worker_python/scaffold/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

ARG BASE_IMAGE=python:3.12-slim-trixie
ARG BASE_IMAGE=python:3.14-slim-trixie
FROM ${BASE_IMAGE}

COPY --from=ghcr.io/astral-sh/uv:0.12.1 /uv /uvx /bin/
Expand Down
2 changes: 1 addition & 1 deletion maestro_worker_python/scaffold/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "maestro-worker"
version = "0.1.0"
description = "A Maestro inference worker"
requires-python = ">=3.10,<3.14"
requires-python = ">=3.11,<3.15"
dependencies = [
"maestro-worker-python @ https://github.com/moises-ai/maestro-worker-python/archive/refs/tags/MAESTRO_WORKER_PYTHON_VERSION.tar.gz",
]
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[project]
name = "maestro-worker-python"
version = "5.2.3"
version = "5.3.0"
description = "Utility to run workers on Moises/Maestro"
readme = "README.md"
requires-python = ">=3.10,<3.14"
requires-python = ">=3.11,<3.16"
license = "MIT"
authors = [{ name = "Moises.ai" }]
dependencies = [
Expand Down Expand Up @@ -39,7 +39,7 @@ build-backend = "uv_build"

[tool.ruff]
line-length = 120
target-version = "py310"
target-version = "py311"

[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "UP", "B"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_init_creates_complete_worker_scaffold(tmp_path, monkeypatch):
)

dockerfile = (target / "Dockerfile").read_text()
assert "ARG BASE_IMAGE=python:3.12-slim-trixie" in dockerfile
assert "ARG BASE_IMAGE=python:3.14-slim-trixie" in dockerfile
assert "FROM ${BASE_IMAGE}" in dockerfile
assert "COPY --from=ghcr.io/astral-sh/uv:0.12.1 /uv /uvx /bin/" in dockerfile
assert "UV_LINK_MODE=copy" in dockerfile
Expand Down
Loading
Loading