Skip to content

Commit 715aedd

Browse files
committed
wewe
1 parent 0f7289f commit 715aedd

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

.github/workflows/ascend_npu_test.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Ascend NPU Test Suite'
1+
name: 'download.pytorch.org'
22

33
on:
44
push:
@@ -31,7 +31,7 @@ on:
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:
@@ -91,6 +91,25 @@ jobs:
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

0 commit comments

Comments
 (0)