Skip to content

Conversation

@Bengt
Copy link

@Bengt Bengt commented Oct 7, 2025

This adds steps to the existing release workflow, which package the isort Python distribution as a Docker image and push it to the GitHub container registry.

This fixes #1959.

@codecov
Copy link

codecov bot commented Oct 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.19%. Comparing base (9f1be49) to head (6e55dde).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2428   +/-   ##
=======================================
  Coverage   99.19%   99.19%           
=======================================
  Files          39       39           
  Lines        3090     3090           
  Branches      680      680           
=======================================
  Hits         3065     3065           
  Misses         14       14           
  Partials       11       11           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Build a new Docker image and push it to the GitHub Container Registry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I have no clue what I'm looking at here. Is there perhaps a link you can share with some example of another project that has a similar setup?


# Install uv
COPY --from=ghcr.io/astral-sh/uv:0.6.0 /uv /uvx /bin/
RUN pip install --no-cache-dir uv
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not copy from ghcr.io? And can we take the version as defined in pyproject.toml?

RUN touch /isort/README.md
COPY . /isort
RUN SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uv sync --all-extras --frozen
RUN SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uv build .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be a different version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish an official isort image on Docker Hub

2 participants