File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ jobs:
113113 fi
114114
115115 - name : Install Triton
116- if : contains(matrix.alias, 'cpu') || (steps.cache.outputs.cache-hit != 'true' && matrix.pytorch-version != 'pytorch-2.9') || contains(matrix.alias, 'distributed')
116+ if : contains(matrix.alias, 'cpu') || (steps.cache.outputs.cache-hit != 'true' && matrix.pytorch-version != 'pytorch-2.9')
117117 run : |
118118 set -x
119119 source .venv/bin/activate
@@ -155,11 +155,11 @@ jobs:
155155 if [[ "${{ contains(matrix.alias, 'cpu') }}" == "true" ]]; then export TRITON_CPU_BACKEND=1; fi
156156 # -rf: print failed tests
157157 # --timeout: max allowed time for each test
158- if [[ "${{ matrix.alias }}" == *distributed* ]]; then
159- pytest -rf --timeout=120 test/test_distributed .py
160- else
161- pytest -rf --timeout=60
162- fi
158+ # Set test path: "." for regular tests, "test/test_examples_dist.py" for distributed
159+ TEST_PATH=$([[ "${{ matrix.alias }}" == *distributed* ]] && echo " test/test_examples_dist .py" || echo ".")
160+ TEST_TIMEOUT=$([[ "${{ matrix.alias }}" == *distributed* ]] && echo "120" || echo "60")
161+ FLAGS=$([[ "${{ matrix.alias }}" == *distributed* ]] && echo "" || echo "--ignore=test/test_examples_dist.py")
162+ pytest -rf --timeout=$TEST_TIMEOUT $FLAGS $TEST_PATH
163163
164164 test-notebooks :
165165 name : test-notebooks-cu128-py3.12-pytorch-2.9-a10g
You can’t perform that action at this time.
0 commit comments