File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Test
1+ name : Main
22
33on :
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 :
You can’t perform that action at this time.
0 commit comments