-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Add-Allowed-Workflows-for-Retry-Bot
- Loading branch information
Showing
4 changed files
with
80 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Tests on Windows | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- nightly | ||
- main | ||
- release/* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
unittests: | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
runner: ["windows.4xlarge"] | ||
gpu-arch-type: ["cpu"] | ||
# FIXME: enable this as soon as nvjpeg is available on the Windows runner | ||
# include: | ||
# - python-version: "3.8" | ||
# runner: windows.8xlarge.nvidia.gpu | ||
# gpu-arch-type: cuda | ||
# gpu-arch-version: "11.7" | ||
fail-fast: false | ||
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main | ||
with: | ||
repository: pytorch/vision | ||
runner: ${{ matrix.runner }} | ||
timeout: 120 | ||
script: | | ||
set -euxo pipefail | ||
export PYTHON_VERSION=${{ matrix.python-version }} | ||
export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }} | ||
export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }} | ||
# TODO: Port this to pytorch/test-infra/.github/workflows/windows_job.yml | ||
export PATH="/c/Jenkins/Miniconda3/Scripts:${PATH}" | ||
if [[ $GPU_ARCH_TYPE == 'cuda' ]]; then | ||
# TODO: This should be handled by the generic Windows job the same as its done by the generic Linux job | ||
export CUDA_HOME="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v${{ matrix.gpu-arch-version }}" | ||
export CUDA_PATH="${CUDA_HOME}" | ||
fi | ||
./.github/scripts/unittest.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters