Skip to content

Commit 01cba11

Browse files
committed
getsentry/action-setup-venv
1 parent d44454a commit 01cba11

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/pre-commit.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,17 @@ jobs:
3434
all:
3535
- added|modified: '**/*'
3636
37-
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
38-
3937
- uses: astral-sh/setup-uv@884ad927a57e558e7a70b92f2bccf9198a4be546 # v6
4038
with:
4139
version: '0.8.2'
40+
# we just cache the venv-dir directly in action-setup-venv
41+
enable-cache: false
42+
43+
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
44+
with:
45+
python-version: 3.11.11
46+
cache-dependency-path: uv.lock
47+
install-cmd: echo
4248

4349
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
4450
with:
@@ -47,7 +53,7 @@ jobs:
4753

4854
- name: Install pre-commit
4955
run: |
50-
uv export --only-dev --no-hashes --no-annotate --no-header | grep 'pre-commit' | sed -E 's/ ;.*//' | xargs uv pip install
56+
# todo: rustfmt
5157
pre-commit install-hooks
5258
5359
- name: Run pre-commit

0 commit comments

Comments
 (0)