Skip to content

Commit 1be7c93

Browse files
committed
use uv in gh pre-commit action
1 parent 5a47425 commit 1be7c93

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pre-commit.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: actions/setup-python@v5
13+
- name: Install uv and set the python version
14+
uses: astral-sh/setup-uv@v6
15+
with:
16+
python-version: '3.12'
17+
enable-cache: true
18+
cache-dependency-glob: "uv.lock"
19+
- name: Sync uv
20+
run: uv sync --locked --all-extras --dev
1421
- uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)