@@ -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: | |||||
- 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")"/..) | |||||
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 |