Skip to content

Commit

Permalink
Actions: Set pyenv after setting path on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
simmsa committed Apr 17, 2024
1 parent 693dc64 commit e76fa53
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/windows_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,6 @@ jobs:
# because: Peer process exited before transport type handshake. Exit status: 3221226505
# ERROR: MATLAB error Exit Status: 0x00000001
# exit status 1
- name: Configure MATLAB pyenv Version and ExecutionMode
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
run: >
"pyenv(Version='{0}', ExecutionMode='InProcess')" -f (python -c "import sys; print(sys.executable)") | Out-File -FilePath run.m

# - name: Add Python Dir to Path
# if: ${{ matrix.os == 'windows-latest' }}
Expand All @@ -356,7 +351,13 @@ jobs:
shell: bash -l {0}
run: |
conda activate MHKIT_CONDA_ENV
printf "getenv('path')\nsetenv('path', ['%s;', getenv('path')])\ngetenv('path')\n" $(python -c "import sys; import os; print(os.path.dirname(sys.executable))") >> run.m
printf "getenv('path')\nsetenv('path', ['%s;', getenv('path')])\ngetenv('path')\n" $(python -c "import sys; import os; print(os.path.dirname(sys.executable))") > run.m

- name: Configure MATLAB pyenv Version and ExecutionMode
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
run: >
"pyenv(Version='{0}', ExecutionMode='InProcess')" -f (python -c "import sys; print(sys.executable)") | Out-File -FilePath run.m -Append

- name: Add MATLAB test commands
shell: bash
Expand Down

0 comments on commit e76fa53

Please sign in to comment.