Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions .github/workflows/pokeflex-bma-vs-map-gpuserver4090.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ env:
PYTHONUNBUFFERED: "1"
REQUEST_PATH: ops/pokeflex-bma-vs-map-gpuserver4090-request.json
NUMPY_VERSION: "2.2.6"
SCIPY_VERSION: "1.13.1"
PACKAGING_VERSION: "23.0"

jobs:
evaluate:
Expand Down Expand Up @@ -49,7 +51,7 @@ jobs:
test "$(git rev-parse HEAD)" = "${GITHUB_SHA}"
test -z "$(git status --porcelain=v1)"

- name: Bootstrap isolated pinned NumPy runtime
- name: Bootstrap isolated pinned Causal4D base runtime
shell: bash
run: |
set -euo pipefail
Expand All @@ -76,30 +78,43 @@ jobs:
exit 1
fi

runtime="$RUNNER_TEMP/pokeflex-bma-numpy-runtime"
runtime="$RUNNER_TEMP/pokeflex-bma-base-runtime"
rm -rf "$runtime"
mkdir -p "$runtime"
"$selected" -m pip install \
--disable-pip-version-check \
--no-input \
--only-binary=:all: \
--target "$runtime" \
"numpy==${NUMPY_VERSION}" 2>&1 | tee "$output/pip-install.log"
"numpy==${NUMPY_VERSION}" \
"scipy==${SCIPY_VERSION}" \
"packaging==${PACKAGING_VERSION}" \
2>&1 | tee "$output/pip-install.log"

PYTHONPATH="$runtime" "$selected" - <<'PY' > "$output/runtime.txt"
import numpy
import os
import packaging
import numpy
import platform
import scipy
import sys

expected = os.environ["NUMPY_VERSION"]
if numpy.__version__ != expected:
raise SystemExit(
f"unexpected isolated NumPy version: {numpy.__version__} != {expected}"
)
expected = {
"numpy": os.environ["NUMPY_VERSION"],
"scipy": os.environ["SCIPY_VERSION"],
"packaging": os.environ["PACKAGING_VERSION"],
}
observed = {
"numpy": numpy.__version__,
"scipy": scipy.__version__,
"packaging": packaging.__version__,
}
if observed != expected:
raise SystemExit(f"unexpected isolated runtime: {observed} != {expected}")
print("python_executable", sys.executable)
print("python", platform.python_version())
print("numpy", numpy.__version__)
for name, version in observed.items():
print(name, version)
PY
printf 'PYTHON_BIN=%s\n' "$selected" >> "$GITHUB_ENV"
printf 'EVAL_PYTHONPATH=%s\n' "$runtime" >> "$GITHUB_ENV"
Expand Down