Skip to content

Commit

Permalink
[ci] Add end-to-end CI tests for meshtaichi (taichi-dev#6321)
Browse files Browse the repository at this point in the history
Continued from taichi-dev#6310.
Changes of mesh.py in taichi need to be merged before this CI change.
  • Loading branch information
BillXu2000 authored Oct 14, 2022
1 parent 4db2b31 commit 082b4d0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/scripts/unix_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]: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
12 changes: 12 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 082b4d0

Please sign in to comment.