Commit 8b3828d 1 parent 0225875 commit 8b3828d Copy full SHA for 8b3828d
File tree 6 files changed +18
-9
lines changed
6 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 26
26
27
27
- name : Install UV
28
28
uses : astral-sh/setup-uv@v5
29
+ with :
30
+ version : " >=0.5.24"
29
31
30
32
- name : Install dependencies
31
33
run : uv sync --all-extras --frozen
Original file line number Diff line number Diff line change 26
26
27
27
- name : Install UV
28
28
uses : astral-sh/setup-uv@v5
29
+ with :
30
+ version : " >=0.5.24"
29
31
30
32
- name : Install dependencies
31
33
run : uv sync --all-extras --frozen
Original file line number Diff line number Diff line change 24
24
25
25
- name : Install UV
26
26
uses : astral-sh/setup-uv@v5
27
+ with :
28
+ version : " >=0.5.24"
27
29
28
30
- name : Build package
29
31
run : |
Original file line number Diff line number Diff line change 31
31
32
32
- name : Install UV
33
33
uses : astral-sh/setup-uv@v5
34
+ with :
35
+ version : " >=0.5.24"
34
36
35
37
- name : Check if there is a parent commit
36
38
id : check-parent-commit
Original file line number Diff line number Diff line change 31
31
32
32
- name : Install UV
33
33
uses : astral-sh/setup-uv@v5
34
+ with :
35
+ version : " >=0.5.24"
34
36
35
37
- name : Install dependencies
36
38
run : uv sync --all-extras --frozen
Original file line number Diff line number Diff line change 1
- ARG VERSION=3
2
- FROM python:$VERSION
1
+ FROM python:3.13
3
2
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/
6
8
7
9
# Setup as minimal a stub project as possible, simply to allow caching base dependencies
8
10
# between builds.
@@ -13,14 +15,11 @@ RUN mkdir -p /isort/tests
13
15
RUN touch /isort/isort/__init__.py
14
16
RUN touch /isort/tests/__init__.py
15
17
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
19
20
20
21
# Install latest code for actual project
21
22
RUN rm -rf /isort
22
- COPY . /isort
23
- RUN uv sync
24
23
25
24
# Run full test suite
26
25
CMD /isort/scripts/test.sh
You can’t perform that action at this time.
0 commit comments