Skip to content

Commit

Permalink
Pin UV version
Browse files Browse the repository at this point in the history
  • Loading branch information
staticdev committed Jan 27, 2025
1 parent 0225875 commit 8b3828d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

- name: Install UV
uses: astral-sh/setup-uv@v5
with:
version: ">=0.5.24"

- name: Install dependencies
run: uv sync --all-extras --frozen
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

- name: Install UV
uses: astral-sh/setup-uv@v5
with:
version: ">=0.5.24"

- name: Install dependencies
run: uv sync --all-extras --frozen
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:

- name: Install UV
uses: astral-sh/setup-uv@v5
with:
version: ">=0.5.24"

- name: Build package
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
- name: Install UV
uses: astral-sh/setup-uv@v5
with:
version: ">=0.5.24"

- name: Check if there is a parent commit
id: check-parent-commit
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:

- name: Install UV
uses: astral-sh/setup-uv@v5
with:
version: ">=0.5.24"

- name: Install dependencies
run: uv sync --all-extras --frozen
Expand Down
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
ARG VERSION=3
FROM python:$VERSION
FROM python:3.13

# Install pip and uv
RUN python -m pip install --upgrade pip && python -m pip install uv
WORKDIR /isort
COPY pyproject.toml uv.lock /isort/

# Install uv
COPY --from=ghcr.io/astral-sh/uv:0.5.24 /uv /uvx /bin/

# Setup as minimal a stub project as possible, simply to allow caching base dependencies
# between builds.
Expand All @@ -13,14 +15,11 @@ RUN mkdir -p /isort/tests
RUN touch /isort/isort/__init__.py
RUN touch /isort/tests/__init__.py
RUN touch /isort/README.md
WORKDIR /isort
COPY pyproject.toml uv.lock /isort/
RUN uv sync
COPY . /isort
RUN SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uv sync --all-extras --frozen

# Install latest code for actual project
RUN rm -rf /isort
COPY . /isort
RUN uv sync

# Run full test suite
CMD /isort/scripts/test.sh

0 comments on commit 8b3828d

Please sign in to comment.