fix(ci): use fast mirror for fnOS wheels
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user