Skip to content

Commit 464eeb6

Browse files
enhance the test file read
1 parent 08398c9 commit 464eeb6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/_linux_ut.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,18 @@ jobs:
148148
test_compiled_optimizers.py
149149
test_compiled_autograd.py
150150
test_compile_subprocess.py
151-
env:
152-
TEST_FILES: ${{ matrix.test_files }}
153151
additional_steps: |
154152
pip install pytest pytest-timeout
155153
- name: 'torch_xpu_2'
156154
condition: ${{ contains(inputs.ut, 'torch_xpu') }}
157155
directory: '../pytorch'
158156
test_files: "test_torchinductor_opinfo.py"
159-
env:
160-
TEST_FILES: ${{ matrix.test_files }}
161157
additional_steps: |
162158
pip install pytest pytest-timeout
163159
- name: 'torch_xpu_3'
164160
condition: ${{ contains(inputs.ut, 'torch_xpu') }}
165161
directory: '../pytorch'
166162
test_files: "test_aot_inductor.py"
167-
env:
168-
TEST_FILES: ${{ matrix.test_files }}
169163
additional_steps: |
170164
pip install pytest pytest-timeout
171165
- name: 'xpu_profiling'
@@ -311,6 +305,9 @@ jobs:
311305
[[ "${{ inputs.keep_going }}" == "true" ]] && keep_going_flag="--keep-going"
312306
export PYTORCH_TEST_WITH_SLOW=1
313307
export PYTORCH_TESTING_DEVICE_ONLY_FOR="xpu"
308+
echo "TEST_FILES<<EOF" >> $GITHUB_ENV
309+
echo "${{ matrix.test_files }}" >> $GITHUB_ENV
310+
echo "EOF" >> $GITHUB_ENV
314311
cat <<EOF > test_files.txt
315312
$TEST_FILES
316313
EOF

0 commit comments

Comments
 (0)