Skip to content

Commit bedcccd

Browse files
[CI] don't fall at first try
1 parent 01312c5 commit bedcccd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/unit_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,11 @@ jobs:
283283
else
284284
echo "[INFO] Current Python is not 3.14t, skip torchao."
285285
fi
286-
287-
${{ matrix.install_cmd }}
286+
287+
${{ matrix.install_cmd }} || echo "RETRY_INSTALL=true" >> $GITHUB_ENV
288288
289289
- name: Clear installer cache on failure
290-
if: failure()
290+
if: always() && env.RETRY_INSTALL == 'true'
291291
run: |
292292
source "${{ matrix.env_name }}/bin/activate"
293293
@@ -302,7 +302,7 @@ jobs:
302302
fi
303303
304304
- name: retry ${{ matrix.name }}
305-
if: failure()
305+
if: always() && env.RETRY_INSTALL == 'true'
306306
run: |
307307
source "${{ matrix.env_name }}/bin/activate"
308308
if [[ "${{ matrix.use_pip }}" == "true" ]]; then

0 commit comments

Comments
 (0)