Skip to content

Commit 19fe94d

Browse files
committed
upd: workflow
1 parent 6f56006 commit 19fe94d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: Main
22

33
on:
44
pull_request:
@@ -24,14 +24,20 @@ jobs:
2424
uses: actions/setup-python@v6
2525
with:
2626
python-version-file: "pyproject.toml"
27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v7
2729
- name: Restore pre-commit cache
2830
uses: actions/cache@v5
2931
with:
3032
path: ~/.cache/pre-commit
31-
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
33+
key: pre-commit-${{ runner.os }}-${{ hashFiles('uv.lock') }}-${{ hashFiles('.pre-commit-config.yaml') }}
3234
restore-keys: |
35+
pre-commit-${{ runner.os }}-${{ hashFiles('uv.lock') }}-${{ hashFiles('.pre-commit-config.yaml') }}
36+
pre-commit-${{ runner.os }}-${{ hashFiles('uv.lock') }}
3337
pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
3438
pre-commit-${{ runner.os }}
39+
- name: Install the project
40+
run: uv sync --locked --all-extras --dev
3541
- uses: pre-commit/action@v3.0.1
3642

3743
pytest:

0 commit comments

Comments
 (0)