fix(ci): use fast mirror for fnOS wheels

This commit is contained in:
2026-08-12 15:09:15 +08:00
parent 48f4efaf3d
commit 305f9cf906
2 changed files with 11 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
from pathlib import Path
def test_fnos_dependency_download_uses_fast_configurable_index() -> None:
script = (Path(__file__).parents[1] / "scripts" / "prepare-fnos-dependencies.sh").read_text()
assert "PIP_INDEX_URL=${PIP_INDEX_URL:-https://pypi.tuna.tsinghua.edu.cn/simple}" in script
assert '--index-url "$PIP_INDEX_URL"' in script
assert '--timeout "$PIP_TIMEOUT" --retries 4' in script