Skip to content

Commit

Permalink
[ci] Add step to run unit tests. (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaraccident authored Jan 28, 2024
1 parent 77c14ab commit 4513c3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions build_tools/ci/build_posix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4513c3c

Please sign in to comment.