Skip to content

Commit 8b3828d

Browse files
committed
Pin UV version
1 parent 0225875 commit 8b3828d

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

.github/workflows/integration.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626

2727
- name: Install UV
2828
uses: astral-sh/setup-uv@v5
29+
with:
30+
version: ">=0.5.24"
2931

3032
- name: Install dependencies
3133
run: uv sync --all-extras --frozen

.github/workflows/lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626

2727
- name: Install UV
2828
uses: astral-sh/setup-uv@v5
29+
with:
30+
version: ">=0.5.24"
2931

3032
- name: Install dependencies
3133
run: uv sync --all-extras --frozen

.github/workflows/release-dev.yml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
- name: Install UV
2626
uses: astral-sh/setup-uv@v5
27+
with:
28+
version: ">=0.5.24"
2729

2830
- name: Build package
2931
run: |

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
3232
- name: Install UV
3333
uses: astral-sh/setup-uv@v5
34+
with:
35+
version: ">=0.5.24"
3436

3537
- name: Check if there is a parent commit
3638
id: check-parent-commit

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
- name: Install UV
3333
uses: astral-sh/setup-uv@v5
34+
with:
35+
version: ">=0.5.24"
3436

3537
- name: Install dependencies
3638
run: uv sync --all-extras --frozen

Dockerfile

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
ARG VERSION=3
2-
FROM python:$VERSION
1+
FROM python:3.13
32

4-
# Install pip and uv
5-
RUN python -m pip install --upgrade pip && python -m pip install uv
3+
WORKDIR /isort
4+
COPY pyproject.toml uv.lock /isort/
5+
6+
# Install uv
7+
COPY --from=ghcr.io/astral-sh/uv:0.5.24 /uv /uvx /bin/
68

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

2021
# Install latest code for actual project
2122
RUN rm -rf /isort
22-
COPY . /isort
23-
RUN uv sync
2423

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

0 commit comments

Comments
 (0)