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
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
**

!pyproject.toml
!poetry.lock
!uv.lock
!src/

src/**/__pycache__/
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
with:
python-version: "3.12"
- name: Install verification tools
run: python -m pip install poetry==2.4.1 ruff==0.12.10
run: python -m pip install uv==0.13.5 ruff==0.12.10
- name: Install locked dependencies
run: poetry install --no-interaction --no-ansi
run: uv sync --locked
- name: Validate package metadata and lock file
run: poetry check --lock
run: uv lock --check
- name: Check lint
run: ruff check .
- name: Check formatting
run: ruff format --check .
- name: Run tests
run: poetry run pytest
run: uv run --locked pytest
docker:
needs: verify
runs-on: ubuntu-latest
Expand Down
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
FROM python:3.12-alpine

ENV POETRY_VERSION=2.1.4 \
PYTHONDONTWRITEBYTECODE=1 \
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1

RUN pip install --no-cache-dir "poetry==$POETRY_VERSION"
COPY --from=ghcr.io/astral-sh/uv:0.13.5 /uv /usr/local/bin/uv

WORKDIR /app

COPY pyproject.toml poetry.lock* /app/
COPY pyproject.toml uv.lock /app/

# Warm up to avoid findpython timeout on arm64 build
RUN /usr/local/bin/python -EsSc 'import platform; print(platform.python_version())'

RUN poetry config virtualenvs.create false \
&& poetry -vvv install --only main --no-root --no-interaction --no-ansi
RUN UV_PROJECT_ENVIRONMENT=/usr/local uv sync --locked --no-dev --no-install-project --inexact

COPY src/ ./src/
ENV PYTHONPATH=/app/src \
Expand Down
Loading
Loading