Skip to content

Commit b687ff8

Browse files
[CI] source eenv
1 parent e4e2500 commit b687ff8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/unit_tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,16 @@ jobs:
289289
- name: Clear installer cache on failure
290290
if: failure()
291291
run: |
292+
source "${{ matrix.env_name }}/bin/activate"
293+
292294
INSTALL_CMD='${{ matrix.install_cmd }}'
293295
294296
if [[ "$INSTALL_CMD" == uv* || "$INSTALL_CMD" == *" uv "* ]]; then
295297
echo "[INFO] Previous install command uses uv, clearing uv cache..."
296298
uv cache clean
297299
elif [[ "$INSTALL_CMD" == pip* || "$INSTALL_CMD" == *" pip "* ]]; then
298300
echo "[INFO] Previous install command uses pip, clearing pip cache..."
299-
python -m pip cache purge || rm -rf ~/.cache/pip
301+
pip cache purge || rm -rf ~/.cache/pip
300302
fi
301303
echo "RETRY_INSTALL=true" >> $GITHUB_ENV
302304

0 commit comments

Comments
 (0)