mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Install package smoke deps from locked artifacts
This commit is contained in:
parent
838be70ebb
commit
34bd01df87
20
.github/workflows/pip.yml
vendored
20
.github/workflows/pip.yml
vendored
@ -121,13 +121,27 @@ jobs:
|
||||
data_dir="$smoke_root/data"
|
||||
mkdir -p "$data_dir"
|
||||
|
||||
mapfile -t dependency_artifacts < <(uv run --no-project python - <<'PY'
|
||||
import tomllib
|
||||
|
||||
locked = {
|
||||
package["name"]: package
|
||||
for package in tomllib.load(open("uv.lock", "rb"))["package"]
|
||||
}
|
||||
for package_name in ("abx-dl", "abx-plugins", "abxpkg", "abxbus"):
|
||||
package = locked[package_name]
|
||||
wheels = package.get("wheels") or []
|
||||
if len(wheels) != 1:
|
||||
raise SystemExit(f"Expected exactly one locked wheel for {package_name}")
|
||||
print(wheels[0]["url"])
|
||||
PY
|
||||
)
|
||||
|
||||
uv venv --python "${{ matrix.python }}" "$smoke_env"
|
||||
uv pip install \
|
||||
--python "$smoke_env" \
|
||||
--no-cache \
|
||||
--refresh-package abx-dl \
|
||||
--refresh-package abx-plugins \
|
||||
--refresh-package abxpkg \
|
||||
"${dependency_artifacts[@]}" \
|
||||
"$artifact"
|
||||
|
||||
unset PYTHONPATH
|
||||
|
||||
Loading…
Reference in New Issue
Block a user