ci: bootstrap quality env without ensurepip
Some checks failed
CI/CD Pipeline / Manual Action Help (push) Has been skipped
CI/CD Pipeline / Start Dev Containers in Dokploy (push) Has been skipped
CI/CD Pipeline / Drop and Recreate Dev Database (push) Has been skipped
CI/CD Pipeline / Build and Push Images (push) Has been cancelled
CI/CD Pipeline / Internal Notify (push) Has been cancelled
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been cancelled
CI/CD Pipeline / Quality Gate (push) Has been cancelled
Some checks failed
CI/CD Pipeline / Manual Action Help (push) Has been skipped
CI/CD Pipeline / Start Dev Containers in Dokploy (push) Has been skipped
CI/CD Pipeline / Drop and Recreate Dev Database (push) Has been skipped
CI/CD Pipeline / Build and Push Images (push) Has been cancelled
CI/CD Pipeline / Internal Notify (push) Has been cancelled
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been cancelled
CI/CD Pipeline / Quality Gate (push) Has been cancelled
This commit is contained in:
@@ -84,7 +84,7 @@ jobs:
|
|||||||
- name: Install Python and uv
|
- name: Install Python and uv
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
rm -rf .venv .ci-python-env
|
rm -rf .venv .ci-bin .ci-python-env
|
||||||
CLEAN_PATH=""
|
CLEAN_PATH=""
|
||||||
IFS=: read -r -a PATH_PARTS <<< "${PATH}"
|
IFS=: read -r -a PATH_PARTS <<< "${PATH}"
|
||||||
for path_part in "${PATH_PARTS[@]}"; do
|
for path_part in "${PATH_PARTS[@]}"; do
|
||||||
@@ -108,6 +108,11 @@ jobs:
|
|||||||
"${PYTHON_BIN}" --version
|
"${PYTHON_BIN}" --version
|
||||||
|
|
||||||
printf 'PYTHON_BIN=%s\n' "${PYTHON_BIN}" > .ci-python-env
|
printf 'PYTHON_BIN=%s\n' "${PYTHON_BIN}" > .ci-python-env
|
||||||
|
mkdir -p .ci-bin
|
||||||
|
if ! curl -LsSf "https://astral.sh/uv/${UV_VERSION}/install.sh" | env UV_INSTALL_DIR="${PWD}/.ci-bin" sh; then
|
||||||
|
curl -LsSf "https://astral.sh/uv/install.sh" | env UV_INSTALL_DIR="${PWD}/.ci-bin" sh
|
||||||
|
fi
|
||||||
|
.ci-bin/uv --version
|
||||||
|
|
||||||
- name: Create virtual environment and install dependencies
|
- name: Create virtual environment and install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -119,14 +124,13 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
"${PYTHON_BIN}" -m venv .venv
|
"${PYTHON_BIN}" -m venv --without-pip .venv
|
||||||
. .venv/bin/activate
|
. .venv/bin/activate
|
||||||
python -m pip install "uv==${UV_VERSION}"
|
.ci-bin/uv sync \
|
||||||
uv sync \
|
|
||||||
--dev \
|
--dev \
|
||||||
--frozen \
|
--frozen \
|
||||||
--active \
|
--active \
|
||||||
--python "${PYTHON_BIN}" \
|
--python "${PWD}/.venv/bin/python" \
|
||||||
--no-managed-python \
|
--no-managed-python \
|
||||||
--no-python-downloads
|
--no-python-downloads
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user