Skip to content

Commit ddf90cd

Browse files
authored
Use setup-cached-uv (#637)
1 parent 12e7a98 commit ddf90cd

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
with:
5151
python-version: ${{ matrix.python-version }}
5252
allow-prereleases: true
53-
cache: pip
54-
- run: python -Im pip install tox-uv
53+
- uses: hynek/setup-cached-uv@v2
54+
- run: uv pip install --system tox-uv
5555

5656
- run: python -Im tox run --installpkg dist/*.whl -f py$(echo ${{ matrix.python-version }} | tr -d .)
5757

@@ -72,8 +72,8 @@ jobs:
7272
- uses: actions/setup-python@v5
7373
with:
7474
python-version-file: .python-version-default
75-
cache: pip
76-
- run: python -Im pip install --upgrade coverage[toml]
75+
- uses: hynek/setup-cached-uv@v2
76+
- run: uv pip install --system --upgrade coverage[toml]
7777
- uses: actions/download-artifact@v4
7878
with:
7979
pattern: coverage-data-*
@@ -113,8 +113,8 @@ jobs:
113113
with:
114114
python-version-file: .python-version-default
115115
allow-prereleases: true
116-
cache: pip
117-
- run: python -Im pip install tox-uv
116+
- uses: hynek/setup-cached-uv@v2
117+
- run: uv pip install --system tox-uv
118118

119119
- run: python -Im tox run --installpkg dist/*.whl -e mypy-pkg
120120

@@ -134,8 +134,8 @@ jobs:
134134
with:
135135
python-version-file: .python-version-default
136136
allow-prereleases: true
137-
cache: pip
138-
- run: python -Im pip install tox-uv
137+
- uses: hynek/setup-cached-uv@v2
138+
- run: uv pip install --system tox-uv
139139

140140
- run: python -Im tox run --installpkg dist/*.whl -e pyright
141141

@@ -154,8 +154,8 @@ jobs:
154154
with:
155155
# Keep in sync with tox.ini/docs & .readthedocs.yaml
156156
python-version: "3.12"
157-
cache: pip
158-
- run: python -Im pip install tox-uv
157+
- uses: hynek/setup-cached-uv@v2
158+
- run: uv pip install --system tox-uv
159159

160160
- run: python -Im tox run -e docs
161161

@@ -171,9 +171,8 @@ jobs:
171171
- uses: actions/setup-python@v5
172172
with:
173173
python-version-file: .python-version-default
174-
cache: pip
174+
- uses: hynek/setup-cached-uv@v2
175175

176-
- run: python -Im pip install uv
177176
- run: uv venv
178177
- run: uv pip install -e .[dev]
179178

@@ -211,8 +210,7 @@ jobs:
211210
- uses: actions/setup-python@v5
212211
with:
213212
python-version-file: .python-version-default
214-
cache: pip
215-
# tox 4.12.0 started passing FORCE_COLOR and NO_COLOR by default.
216-
- run: python -Im pip install 'tox>=4.12.0' tox-uv
213+
- uses: hynek/setup-cached-uv@v2
214+
- run: uv pip install --system tox-uv
217215

218216
- run: python -Im tox run -f color

0 commit comments

Comments
 (0)