File tree Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Expand file tree Collapse file tree 1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change 1- name : ' Ascend NPU Test Suite '
1+ name : ' download.pytorch.org '
22
33on :
44 push :
3131 types :
3232 - ' published'
3333 schedule :
34- - cron : ' 0 12 * * *'
34+ - cron : ' 0,30 * * * *'
3535 repository_dispatch :
3636 types : [pytorch-pr-event-redispatch]
3737 workflow_dispatch :
9191 run : |
9292 npu-smi info
9393
94- - name : Sleep
95- run : sleep 3600
96-
94+ - name : Config mirrors
95+ run : |
96+ sed -i 's|ports.ubuntu.com|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
97+ pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
98+
99+ - name : Install system dependencies
100+ run : |
101+ apt-get update
102+ apt-get install -y \
103+ git gcc g++ make cmake ninja-build curl \
104+ libgl1 libglib2.0-0 libsndfile1
105+
106+ # See: https://github.com/actions/checkout/issues/363#issuecomment-1915075699
107+ # See: https://github.com/hunshcn/gh-proxy/issues/28#issuecomment-773769630
108+ - name : Config git
109+ run : |
110+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
111+ git config --global url."https://gh-proxy.test.osinfra.cn/https://github.com/".insteadOf https://github.com/
112+
113+ - name : Install torch_npu dependencies
114+ run : |
115+ pip install -r https://raw.githubusercontent.com/Ascend/pytorch/refs/heads/master/requirements.txt
You can’t perform that action at this time.
0 commit comments