Skip to content
Open
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
10 changes: 7 additions & 3 deletions .github/workflows/_build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,26 @@ jobs:
- name: Prepare the codes
run: |
\cp -rf /root/codes/ /root/build
- name: Config pip mirror
run: |
pip3 config set global.index-url http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple
pip3 config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local
- name: Compile torch
working-directory: /root/build/pytorch/pytorch
run: |
pip3 install -r requirements.txt -i https://mirrors.huaweicloud.com/repository/pypi/simple
pip3 install -r requirements.txt
export _GLIBCXX_USE_CXX11_ABI=1
export USE_CUDA=0
export USE_XNNPACK=0
python setup.py develop
- name: Compile and install torch_npu
working-directory: /root/build/npu/pytorch
run: |
pip3 install -r requirements.txt -i https://mirrors.huaweicloud.com/repository/pypi/simple
pip3 install -r requirements.txt
bash ci/build.sh --python=3.8
pip3 install dist/torch_npu*.whl
- name: Do the test
working-directory: /root/build
run: |
pip3 install -r npu/pytorch/test/requirements.txt -i https://mirrors.huaweicloud.com/repository/pypi/simple --no-deps
pip3 install -r npu/pytorch/test/requirements.txt --no-deps
python npu/pytorch/ci/access_control_test.py