mirror of https://github.com/llvm/torch-mlir
[ci] Add step to run unit tests. (#2820)
parent
77c14ab22b
commit
4513c3ca87
|
@ -66,9 +66,8 @@ jobs:
|
|||
path: ${{ env.CACHE_DIR }}
|
||||
key: build-test-cpp-asserts-manylinux-v2-${{ github.sha }}
|
||||
|
||||
- name: Test project (torch-${{ matrix.torch-version }})
|
||||
- name: Integration tests (torch-${{ matrix.torch-version }})
|
||||
run: |
|
||||
export cache_dir="${{ env.CACHE_DIR }}"
|
||||
bash build_tools/ci/test_posix.sh ${{ matrix.torch-version }}
|
||||
|
||||
- name: Check generated sources (torch-nightly only)
|
||||
|
|
|
@ -56,5 +56,9 @@ echo "::group::Build"
|
|||
cmake --build "$build_dir" --target tools/torch-mlir/all -- -k 0
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::Unit tests"
|
||||
cmake --build $repo_root/build --target check-torch-mlir-all
|
||||
echo "::endgroup::"
|
||||
|
||||
# Show ccache stats.
|
||||
ccache --show-stats
|
||||
|
|
Loading…
Reference in New Issue