[ci] Add step to run unit tests. (#2820)

pull/2815/head
Stella Laurenzo 2024-01-27 19:35:48 -08:00 committed by GitHub
parent 77c14ab22b
commit 4513c3ca87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -66,9 +66,8 @@ jobs:
path: ${{ env.CACHE_DIR }} path: ${{ env.CACHE_DIR }}
key: build-test-cpp-asserts-manylinux-v2-${{ github.sha }} key: build-test-cpp-asserts-manylinux-v2-${{ github.sha }}
- name: Test project (torch-${{ matrix.torch-version }}) - name: Integration tests (torch-${{ matrix.torch-version }})
run: | run: |
export cache_dir="${{ env.CACHE_DIR }}"
bash build_tools/ci/test_posix.sh ${{ matrix.torch-version }} bash build_tools/ci/test_posix.sh ${{ matrix.torch-version }}
- name: Check generated sources (torch-nightly only) - name: Check generated sources (torch-nightly only)

View File

@ -56,5 +56,9 @@ echo "::group::Build"
cmake --build "$build_dir" --target tools/torch-mlir/all -- -k 0 cmake --build "$build_dir" --target tools/torch-mlir/all -- -k 0
echo "::endgroup::" echo "::endgroup::"
echo "::group::Unit tests"
cmake --build $repo_root/build --target check-torch-mlir-all
echo "::endgroup::"
# Show ccache stats. # Show ccache stats.
ccache --show-stats ccache --show-stats