提交 ce55fbf6 编写于 作者: M Megvii Engine Team

ci(imperative): run imperative python test

上级 60778d10
...@@ -20,6 +20,6 @@ jobs: ...@@ -20,6 +20,6 @@ jobs:
- name: Build MegEngine - name: Build MegEngine
run: ./ci/cmake.sh cpu run: ./ci/cmake.sh cpu
- name: Python test - name: Python test
run: ./ci/run_python_test.sh run: ./ci/run_python_test.sh cpu
- name: C++ test - name: C++ test
run: ./ci/run_cpp_test.sh cpu run: ./ci/run_cpp_test.sh cpu
...@@ -26,6 +26,6 @@ jobs: ...@@ -26,6 +26,6 @@ jobs:
- name: Build MegEngine - name: Build MegEngine
run: ./ci/cmake.sh cuda run: ./ci/cmake.sh cuda
- name: Python test - name: Python test
run: ./ci/run_python_test.sh run: ./ci/run_python_test.sh cuda
- name: C++ test - name: C++ test
run: ./ci/run_cpp_test.sh cuda run: ./ci/run_cpp_test.sh cuda
...@@ -7,11 +7,11 @@ BASEDIR=$(readlink -f "$(dirname "$0")"/..) ...@@ -7,11 +7,11 @@ BASEDIR=$(readlink -f "$(dirname "$0")"/..)
function python_test() { function python_test() {
pip3 install --upgrade pip pip3 install --upgrade pip
pushd "${BASEDIR}"/python_module >/dev/null pushd "${BASEDIR}"/imperative/python >/dev/null
pip3 install -e '.[ci]' pip3 install -e '.[ci]'
export PYTHONPATH=. export PYTHONPATH=.
./test/run.sh ./test/run.sh $1
popd >/dev/null popd >/dev/null
} }
python_test python_test $1
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册