Skip to content

Commit

Permalink
Test CI window
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoangthuan99 committed Dec 6, 2024
1 parent 507ec60 commit df5c2e3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,17 @@ jobs:

- name: prepare python package windows
if : runner.os == 'windows'
shell: cmd
shell: pwsh
run: |
conda activate ${{env.MODEL_NAME}}
for /f "delims=" %%a in ('where python') do set "PYTHON_PATH=%%a"
echo %PYTHON_PATH%
for %%i in ("%PYTHON_PATH%") do set "PYTHON_FOLDER=%%~dpi"
set "PYTHON_FOLDER=%PYTHON_FOLDER:~0,-1%"
echo PYTHON_FOLDER=%PYTHON_FOLDER% >> %GITHUB_ENV%
move "%PYTHON_FOLDER%\python*.*" "%PYTHON_FOLDER%\Scripts\"
$pythonPath = where.exe python
echo "Python path (where.exe): $pythonPath"
$pythonFolder = Split-Path -Path "$pythonPath" -Parent
echo "PYTHON_FOLDER=$pythonFolder" >> $env:GITHUB_ENV
Move-Item -Path "$pythonFolder\python*.*" -Destination "$pythonFolder\Scripts\" -Force
# - name: prepare python package unix
# if : runner.os != 'windows'
Expand Down

0 comments on commit df5c2e3

Please sign in to comment.