Skip to content

Commit ec4e06c

Browse files
committed
auto detect python version
1 parent 0ee4702 commit ec4e06c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/_build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
working-directory: /root/build/npu/pytorch
5353
run: |
5454
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
55-
bash ci/build.sh --python=3.8
55+
bash ci/build.sh --python=`python --version | awk '{print $2}' | cut -d '.' -f 1,2`
5656
pip3 install dist/torch_npu*.whl
5757
- name: Do the test
5858
working-directory: /root/build

0 commit comments

Comments
 (0)