File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,19 +18,24 @@ jobs:
1818 pull-requests : write
1919 steps :
2020 - uses : actions/checkout@v4
21- - name : Set up Python
22- uses : actions/setup-python@v5
23- with :
24- python-version : " 3.11"
2521 - name : Install uv
26- uses : astral-sh/setup-uv@v1
27- - name : Restore uv cache
22+ uses : astral-sh/setup-uv@v6
23+ with :
24+ version : 0.8.22
25+ python-version : 3.13
26+ enable-cache : true
27+ cache-suffix : pre-commit
28+ cache-dependency-glob : uv.lock
29+ - name : Restore venv cache
2830 uses : actions/cache@v4
2931 with :
3032 path : |
31- ~/.cache/uv
3233 .venv
33- key : ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }}
34+ key : ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
35+ - uses : actions/cache@v4
36+ with :
37+ path : .mypy_cache
38+ key : mypy_cache|${{ hashFiles('pyproject.toml') }}
3439 - name : Synchronize project dependencies
3540 run : uv sync --group dev
3641 - name : Run pre-commit checks
Original file line number Diff line number Diff line change @@ -33,14 +33,18 @@ jobs:
3333 with :
3434 python-version : ${{ matrix.python-version }}
3535 - name : Install uv
36- uses : astral-sh/setup-uv@v1
37- - name : Restore uv cache
36+ uses : astral-sh/setup-uv@v6
37+ with :
38+ version : 0.8.22
39+ enable-cache : true
40+ cache-suffix : pre-commit
41+ cache-dependency-glob : uv.lock
42+ - name : Restore venv cache
3843 uses : actions/cache@v4
3944 with :
4045 path : |
41- ~/.cache/uv
4246 ${{ env.UV_PROJECT_ENVIRONMENT }}
43- key : ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml ') }}
47+ key : ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('uv.lock ') }}
4448 - name : Synchronize project dependencies
4549 run : uv sync --group dev --python ${{ matrix.python-version }}
4650 - name : Run tests
You can’t perform that action at this time.
0 commit comments