Install Python headers for Gitea CI
Staging Backend Quality Gate / validate (pull_request) Failing after 5m19s
Staging Backend Quality Gate / publish (pull_request) Has been skipped

This commit is contained in:
Jesse_Chen
2026-08-05 15:48:09 +08:00
parent a49ab48936
commit 77c663b9b7
2 changed files with 4 additions and 0 deletions
@@ -59,6 +59,9 @@ jobs:
packages+=(python3-venv)
fi
rm -rf "$venv_probe"
if ! python3 -c 'import pathlib, sysconfig; assert pathlib.Path(sysconfig.get_path("include"), "Python.h").is_file()'; then
packages+=(python3-dev)
fi
if [ "${#packages[@]}" -gt 0 ]; then
apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 \
-o Acquire::https::Timeout=30 update