run_python_test.sh 298 字节
Newer Older
L
luzzyzhang 已提交
1 2 3 4 5 6 7 8
#!/bin/bash

set -e


BASEDIR=$(readlink -f "$(dirname "$0")"/..)

function python_test() {
9
    pip3 install --upgrade pip
10
    pushd "${BASEDIR}"/imperative/python >/dev/null
L
luzzyzhang 已提交
11 12
        pip3 install -e '.[ci]'
        export PYTHONPATH=.
13
        ./test/run.sh $1
L
luzzyzhang 已提交
14 15 16
    popd >/dev/null
}

17
python_test $1