mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[BE][CI] Add windows test run instructions (#90388)
Specifies how to activate VisualStudio, Anaconda and set `PYTHONPATH` to run tests in CI Pull Request resolved: https://github.com/pytorch/pytorch/pull/90388 Approved by: https://github.com/atalman, https://github.com/ZainRizvi
This commit is contained in:
parent
824641b083
commit
c92cf6bee3
2
.github/workflows/_win-build.yml
vendored
2
.github/workflows/_win-build.yml
vendored
|
|
@ -56,7 +56,7 @@ jobs:
|
|||
And then change password using `passwd` command.
|
||||
|
||||
To start build locally, change working folder to \actions-runner\_work\pytorch\pytorch,
|
||||
Activate miniconda and Visual Studio environment, but running:
|
||||
Activate miniconda and Visual Studio environment, by running:
|
||||
call C:\Jenkins\Miniconda3\Scripts\activate.bat C:\Jenkins\Miniconda3
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||
|
||||
|
|
|
|||
10
.github/workflows/_win-test.yml
vendored
10
.github/workflows/_win-test.yml
vendored
|
|
@ -78,6 +78,16 @@ jobs:
|
|||
uses: pytorch/test-infra/.github/actions/setup-ssh@main
|
||||
with:
|
||||
github-secret: ${{ secrets.GITHUB_TOKEN }}
|
||||
instructions: |
|
||||
To forward remote desktop on your local machine ssh as follows:
|
||||
ssh -L 3389:localhost:3389 %%username%%@%%hostname%%
|
||||
And then change password using `passwd` command.
|
||||
|
||||
To start tests locally, change working folder to \actions-runner\_work\pytorch\pytorch\test,
|
||||
Activate miniconda and Visual Studio environment and set PYTHON_PATH, by running:
|
||||
call C:\Jenkins\Miniconda3\Scripts\activate.bat C:\Jenkins\Miniconda3
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||
set PYTHONPATH=C:\actions-runner\_work\pytorch\pytorch\build\win_tmp\build
|
||||
|
||||
- name: Start monitoring script
|
||||
id: monitor-script
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user