Skip to content

Commit f896ccd

Browse files
committed
Pin uv version in ci / cd
1 parent f284154 commit f896ccd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
env:
88
PYTHON_DEFAULT_VERSION: "3.12"
9+
UV_VERSION: "0.8.24"
910

1011
jobs:
1112
deploy:
@@ -28,6 +29,7 @@ jobs:
2829
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
2930
- uses: astral-sh/setup-uv@v7
3031
with:
32+
version: ${{ env.UV_VERSION }}
3133
enable-cache: true
3234
- name: Display Python version
3335
run: python -c "import sys; print(sys.version)"

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
PYTHON_DEFAULT_VERSION: "3.12"
11+
UV_VERSION: "0.8.24"
1112

1213
jobs:
1314
lint:
@@ -27,6 +28,7 @@ jobs:
2728
cache: "pip"
2829
- uses: astral-sh/setup-uv@v7
2930
with:
31+
version: ${{ env.UV_VERSION }}
3032
enable-cache: true
3133
- name: Install dependencies
3234
run: uv sync --only-group nox --locked
@@ -53,6 +55,7 @@ jobs:
5355
cache: "pip"
5456
- uses: astral-sh/setup-uv@v7
5557
with:
58+
version: ${{ env.UV_VERSION }}
5659
enable-cache: true
5760
- name: Install dependencies
5861
run: uv sync --only-group nox --locked
@@ -79,6 +82,7 @@ jobs:
7982
- uses: astral-sh/setup-uv@v7
8083
if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }} # TODO: skip this whole job instead
8184
with:
85+
version: ${{ env.UV_VERSION }}
8286
enable-cache: true
8387
- name: Install dependencies
8488
if: ${{ env.B2_TEST_APPLICATION_KEY != '' && env.B2_TEST_APPLICATION_KEY_ID != '' }} # TODO: skip this whole job instead
@@ -120,6 +124,7 @@ jobs:
120124
cache: "pip"
121125
- uses: astral-sh/setup-uv@v7
122126
with:
127+
version: ${{ env.UV_VERSION }}
123128
enable-cache: true
124129
- name: Install dependencies
125130
run: uv sync --only-group nox --locked
@@ -143,6 +148,7 @@ jobs:
143148
cache: "pip"
144149
- uses: astral-sh/setup-uv@v7
145150
with:
151+
version: ${{ env.UV_VERSION }}
146152
enable-cache: true
147153
- name: Install system dependencies
148154
env:

0 commit comments

Comments
 (0)