Skip to content

Commit b6c6e42

Browse files
using build version
1 parent a62672f commit b6c6e42

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/scripts/ppc64le-build.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ if ! (MAX_JOBS=4 python setup.py bdist_wheel && pip install dist/*.whl); then
1515
exit 1
1616
fi
1717

18-
# Basic test to ensure installation success
19-
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_bfloat16
20-
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float16
21-
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float32
22-
python test/test_utils.py TestDeviceUtilsCPU.test_device_mode_ops_sparse_mm_reduce_cpu_float64
2318

2419
cd ..
2520
pip install pytest pytest-xdist
@@ -28,7 +23,7 @@ if ! pytest -n $(nproc) -vvvv $PACKAGE_NAME/test/common_extended_utils.py $PACKA
2823
exit 0
2924
fi
3025
echo "-----start test
31-
if ! pytest "$PACKAGE_NAME/test/test_utils.py"; then
26+
if ! pytest -Xrs test; then
3227
echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------"
3328
exit 2
3429
else

.github/workflows/ppc64le.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- name: Set up Docker Buildx
2525
uses: docker/setup-buildx-action@v2
2626

27+
- name: Remove old untagged images (optional cleanup)
28+
run: |
29+
docker image prune -a -f
2730
- name: Build Docker image for ppc64le
2831
run: |
2932
docker build -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 .

0 commit comments

Comments
 (0)