Install uv without JavaScript action
All checks were successful
Test and publish / publish (push) Successful in 7s
All checks were successful
Test and publish / publish (push) Successful in 7s
This commit is contained in:
@@ -13,17 +13,19 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
|
||||
with:
|
||||
version: "0.12.13"
|
||||
python-version: "3.12"
|
||||
enable-cache: false
|
||||
download-from-astral-mirror: false
|
||||
github-token: ""
|
||||
|
||||
- name: Install Python
|
||||
run: uv python install 3.12
|
||||
- name: Install uv and Python
|
||||
env:
|
||||
UV_ARCHIVE_SHA256: 745765a3b6e360ad76743599ae5c42e9278c7edf8bbff9fc76d05bf2623a04dd
|
||||
run: |
|
||||
mkdir -p "$HOME/.local/bin"
|
||||
curl -4 --fail --location --show-error --silent \
|
||||
--retry 5 --retry-all-errors --connect-timeout 30 \
|
||||
--output /tmp/uv.tar.gz \
|
||||
https://github.com/astral-sh/uv/releases/download/0.12.13/uv-x86_64-unknown-linux-gnu.tar.gz
|
||||
echo "$UV_ARCHIVE_SHA256 /tmp/uv.tar.gz" | sha256sum --check -
|
||||
tar -xzf /tmp/uv.tar.gz --strip-components=1 -C "$HOME/.local/bin"
|
||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||
"$HOME/.local/bin/uv" python install 3.12
|
||||
|
||||
- name: Install workspace
|
||||
run: uv sync --all-packages
|
||||
|
||||
Reference in New Issue
Block a user