@@ -12,54 +12,44 @@ jobs:
1212 lint :
1313 runs-on : ubuntu-latest
1414
15- env :
16- UV_CACHE_DIR : /tmp/.uv-cache
17-
1815 steps :
1916 - uses : actions/checkout@v4
2017
21- - name : Set up uv
22- run : curl -LsSf https://astral.sh/uv/0.4.30/install.sh | sh
18+ - name : Install uv
19+ uses : astral-sh/setup-uv@v3
20+ with :
21+ version : " 0.5.x"
22+ enable-cache : true
23+ cache-dependency-glob : " uv.lock"
2324
2425 - name : Set up Python
2526 uses : actions/setup-python@v5
2627 with :
2728 python-version-file : " pyproject.toml"
2829
29- - name : Restore uv cache
30- uses : actions/cache@v4
31- with :
32- path : /tmp/.uv-cache
33- key : uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
34- restore-keys : |
35- uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
36- uv-${{ runner.os }}
37-
3830 - name : Install dependencies
3931 run : uv sync --all-extras --dev
4032
4133 - name : Run mypy
4234 run : uv run mypy .
4335 if : always()
4436
45- - name : Minimize uv cache
46- run : uv cache prune --ci
47-
4837 test :
4938 runs-on : ubuntu-latest
5039 strategy :
5140 matrix :
5241 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
5342 fail-fast : false
5443
55- env :
56- UV_CACHE_DIR : /tmp/.uv-cache
57-
5844 steps :
5945 - uses : actions/checkout@v4
6046
61- - name : Set up uv
62- run : curl -LsSf https://astral.sh/uv/0.4.30/install.sh | sh
47+ - name : Install uv
48+ uses : astral-sh/setup-uv@v3
49+ with :
50+ version : " 0.5.x"
51+ enable-cache : true
52+ cache-dependency-glob : " uv.lock"
6353
6454 - name : Set up (release) Python ${{ matrix.python-version }}
6555 uses : actions/setup-python@v5
7363 with :
7464 python-version : ${{ matrix.python-version }}
7565
76- - name : Restore uv cache
77- uses : actions/cache@v4
78- with :
79- path : /tmp/.uv-cache
80- key : uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
81- restore-keys : |
82- uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
83- uv-${{ runner.os }}
84-
8566 - name : Install dependencies
8667 run : |
8768 uv venv
9879 if-no-files-found : error
9980 include-hidden-files : true
10081
101- - name : Minimize uv cache
102- run : uv cache prune --ci
103-
10482 combine-cov :
10583 runs-on : ubuntu-latest
10684 needs : test
0 commit comments