Skip to content

Commit e5468ce

Browse files
[CI] move flag to top
1 parent b687ff8 commit e5468ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ jobs:
289289
- name: Clear installer cache on failure
290290
if: failure()
291291
run: |
292+
echo "RETRY_INSTALL=true" >> $GITHUB_ENV
292293
source "${{ matrix.env_name }}/bin/activate"
293294
294295
INSTALL_CMD='${{ matrix.install_cmd }}'
@@ -298,9 +299,8 @@ jobs:
298299
uv cache clean
299300
elif [[ "$INSTALL_CMD" == pip* || "$INSTALL_CMD" == *" pip "* ]]; then
300301
echo "[INFO] Previous install command uses pip, clearing pip cache..."
301-
pip cache purge || rm -rf ~/.cache/pip
302+
pip cache purge
302303
fi
303-
echo "RETRY_INSTALL=true" >> $GITHUB_ENV
304304
305305
- name: retry ${{ matrix.name }}
306306
if: env.RETRY_INSTALL == 'true'

0 commit comments

Comments
 (0)