From 89408f8a30a602af6986cd6feb08fd99527ea88e Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Tue, 5 Nov 2024 21:17:46 +0800 Subject: [PATCH] chore: wip --- .github/workflows/tests-with-pydebug.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests-with-pydebug.yml b/.github/workflows/tests-with-pydebug.yml index 998c55e2..87355f2d 100644 --- a/.github/workflows/tests-with-pydebug.yml +++ b/.github/workflows/tests-with-pydebug.yml @@ -83,9 +83,11 @@ jobs: shell: pwsh run: | $Env:PYENV_ROOT = "$Env:USERPROFILE\.pyenv" + $Env:PATH = "$Env:PYENV_ROOT\pyenv-win\bin;$Env:PYENV_ROOT\pyenv-win\shims;$Env:PATH" + $Env:PATH = "$(Get-Location)\venv\Scripts;$Env:PATH" git clone https://github.com/pyenv-win/pyenv-win.git "$Env:PYENV_ROOT" Write-Output "PYENV_ROOT=$Env:PYENV_ROOT" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - Write-Output "PATH=$Env:PYENV_ROOT\pyenv-win\bin;$Env:PYENV_ROOT\pyenv-win\shims;$Env:PATH" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append + Write-Output "PATH=$Env:PATH" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - name: Determine Python version shell: bash @@ -196,9 +198,7 @@ jobs: "${PYTHON}" -m venv venv ls -alh venv/Scripts export PYTHON="${PYTHON}.exe" - export PATH="${PWD}/venv/Scripts:${PATH}" echo "PYTHON=${PYTHON}" | tee -a "${GITHUB_ENV}" - echo "PATH=${PATH}" | tee -a "${GITHUB_ENV}" fi "${PYTHON}" --version