ci(gitea): install uv via venv to avoid PEP 668 on runners
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -67,14 +67,16 @@ jobs:
|
||||
if: steps.changes.outputs.changed == 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="${HOME}/.local/bin:${HOME}/.bun/bin:${PATH}"
|
||||
export PATH="${HOME}/.bun/bin:${PATH}"
|
||||
export UV_PYTHON_DOWNLOADS=automatic
|
||||
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y python3 python3-pip python3-venv curl unzip ca-certificates
|
||||
sudo apt-get install -y python3 python3-venv curl unzip ca-certificates
|
||||
|
||||
python3 -m pip install --user --upgrade pip
|
||||
python3 -m pip install --user "uv>=0.4"
|
||||
python3 -m venv /tmp/gitea-ci-venv
|
||||
/tmp/gitea-ci-venv/bin/pip install --upgrade pip
|
||||
/tmp/gitea-ci-venv/bin/pip install "uv>=0.4"
|
||||
export PATH="/tmp/gitea-ci-venv/bin:${PATH}"
|
||||
|
||||
# Official Bun installer (not GitHub Actions)
|
||||
curl -fsSL https://bun.sh/install | bash
|
||||
@@ -83,7 +85,7 @@ jobs:
|
||||
if: steps.changes.outputs.changed == 'true'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="${HOME}/.local/bin:${HOME}/.bun/bin:${PATH}"
|
||||
export PATH="/tmp/gitea-ci-venv/bin:${HOME}/.bun/bin:${PATH}"
|
||||
export BUN_INSTALL="${HOME}/.bun"
|
||||
|
||||
(cd backend && uv sync)
|
||||
|
||||
Reference in New Issue
Block a user