diff --git a/.github/workflows/scripts/unix_test.sh b/.github/workflows/scripts/unix_test.sh index cb34dcb1058ba..c1d0ab7f8b80f 100755 --- a/.github/workflows/scripts/unix_test.sh +++ b/.github/workflows/scripts/unix_test.sh @@ -111,3 +111,15 @@ else python3 tests/run_tests.py -vr2 -t1 -k "torch" -a "$TI_WANTED_ARCHS" # Paddle's paddle.fluid.core.Tensor._ptr() is only available on develop branch, and CUDA version on linux will get error `Illegal Instruction` fi + +# meshtaichi end-to-end test +if [[ $OSTYPE == "linux-"* && ($TI_WANTED_ARCHS == *"cuda"* || $TI_WANTED_ARCHS == *"cpu"*) ]]; then + python3 -m pip install meshtaichi_patcher --upgrade + # git clone git@github.com:taichi-dev/meshtaichi.git + if [[ $TI_WANTED_ARCHS == *"cuda"* ]]; then + python3 meshtaichi/ci/run_test.py --arch cuda + fi + if [[ $TI_WANTED_ARCHS == *"cpu"* ]]; then + python3 meshtaichi/ci/run_test.py --arch cpu + fi +fi diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 79b3ee76ff91d..c739342254d12 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -129,6 +129,12 @@ jobs: fetch-depth: '0' submodules: 'recursive' + - uses: actions/checkout@v3 + with: + repository: taichi-dev/meshtaichi + path: meshtaichi + token: ${{ secrets.GARDENER_PAT }} + - name: Get Build Cache uses: actions/cache@v2 with: @@ -357,6 +363,12 @@ jobs: submodules: 'recursive' fetch-depth: '0' + - uses: actions/checkout@v3 + with: + repository: taichi-dev/meshtaichi + path: meshtaichi + token: ${{ secrets.GARDENER_PAT }} + - name: Prepare Environment run: | . .github/workflows/scripts/common-utils.sh