|
61 | 61 | with: |
62 | 62 | python-version: ${{ env.PYTHON_VERSION }} |
63 | 63 |
|
64 | | - - name: Install uv (Unix) |
65 | | - if: matrix.platform != 'windows' |
66 | | - run: | |
67 | | - curl -LsSf https://astral.sh/uv/install.sh | sh |
68 | | - echo "$HOME/.cargo/bin" >> $GITHUB_PATH |
69 | | -
|
70 | | - - name: Install uv (Windows) |
71 | | - if: matrix.platform == 'windows' |
72 | | - shell: pwsh |
73 | | - run: | |
74 | | - irm https://astral.sh/uv/install.ps1 | iex |
75 | | - echo "$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
| 64 | + - name: Install uv |
| 65 | + uses: astral-sh/setup-uv@v6 |
76 | 66 |
|
77 | 67 | - name: Cache uv environments |
78 | 68 | uses: actions/cache@v3 |
@@ -136,18 +126,8 @@ jobs: |
136 | 126 | sudo apt-get update |
137 | 127 | sudo apt-get install -y upx-ucl |
138 | 128 | |
139 | | - - name: Install uv (Unix) |
140 | | - if: matrix.platform != 'windows' |
141 | | - run: | |
142 | | - curl -LsSf https://astral.sh/uv/install.sh | sh |
143 | | - echo "$HOME/.cargo/bin" >> $GITHUB_PATH |
144 | | -
|
145 | | - - name: Install uv (Windows) |
146 | | - if: matrix.platform == 'windows' |
147 | | - shell: pwsh |
148 | | - run: | |
149 | | - irm https://astral.sh/uv/install.ps1 | iex |
150 | | - echo "$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
| 129 | + - name: Install uv |
| 130 | + uses: astral-sh/setup-uv@v6 |
151 | 131 |
|
152 | 132 | - name: Install Python dependencies |
153 | 133 | run: | |
@@ -217,9 +197,7 @@ jobs: |
217 | 197 | run: brew install upx |
218 | 198 |
|
219 | 199 | - name: Install uv |
220 | | - run: | |
221 | | - curl -LsSf https://astral.sh/uv/install.sh | sh |
222 | | - echo "$HOME/.cargo/bin" >> $GITHUB_PATH |
| 200 | + uses: astral-sh/setup-uv@v6 |
223 | 201 |
|
224 | 202 | - name: Install dependencies |
225 | 203 | run: uv sync --extra dev --extra build |
@@ -318,9 +296,7 @@ jobs: |
318 | 296 | run: brew install upx |
319 | 297 |
|
320 | 298 | - name: Install uv |
321 | | - run: | |
322 | | - curl -LsSf https://astral.sh/uv/install.sh | sh |
323 | | - echo "$HOME/.cargo/bin" >> $GITHUB_PATH |
| 299 | + uses: astral-sh/setup-uv@v6 |
324 | 300 |
|
325 | 301 | - name: Install dependencies |
326 | 302 | run: uv sync --extra dev --extra build |
@@ -433,18 +409,8 @@ jobs: |
433 | 409 | with: |
434 | 410 | python-version: ${{ env.PYTHON_VERSION }} |
435 | 411 |
|
436 | | - - name: Install uv (Unix) |
437 | | - if: matrix.platform != 'windows' |
438 | | - run: | |
439 | | - curl -LsSf https://astral.sh/uv/install.sh | sh |
440 | | - echo "$HOME/.cargo/bin" >> $GITHUB_PATH |
441 | | -
|
442 | | - - name: Install uv (Windows) |
443 | | - if: matrix.platform == 'windows' |
444 | | - shell: pwsh |
445 | | - run: | |
446 | | - irm https://astral.sh/uv/install.ps1 | iex |
447 | | - echo "$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
| 412 | + - name: Install uv |
| 413 | + uses: astral-sh/setup-uv@v6 |
448 | 414 |
|
449 | 415 | - name: Install test dependencies |
450 | 416 | run: uv sync --extra dev |
|
0 commit comments