Skip to content

Commit

Permalink
disable windows and macos untitest
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jul 17, 2024
1 parent b1759ba commit 1555edf
Showing 1 changed file with 126 additions and 126 deletions.
252 changes: 126 additions & 126 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,129 +44,129 @@ jobs:
./.github/scripts/unittest.sh
unittests-macos:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runner: ["macos-m1-stable"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
with:
repository: pytorch/vision
timeout: 240
runner: ${{ matrix.runner }}
test-infra-ref: main
script: |
set -euo pipefail
export PYTHON_VERSION=${{ matrix.python-version }}
export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION=''
${CONDA_RUN} ./.github/scripts/unittest.sh
unittests-windows:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runner: ["windows.4xlarge"]
gpu-arch-type: ["cpu"]
include:
- python-version: "3.8"
runner: windows.g5.4xlarge.nvidia.gpu
gpu-arch-type: cuda
gpu-arch-version: "11.8"
fail-fast: false
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
with:
repository: pytorch/vision
runner: ${{ matrix.runner }}
gpu-arch-type: ${{ matrix.gpu-arch-type }}
gpu-arch-version: ${{ matrix.gpu-arch-version }}
timeout: 120
test-infra-ref: main
script: |
set -euxo pipefail
export PYTHON_VERSION=${{ matrix.python-version }}
export VC_YEAR=2019
export VSDEVCMD_ARGS=""
export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }}
export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}
./.github/scripts/unittest.sh
onnx:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
repository: pytorch/vision
test-infra-ref: main
script: |
set -euo pipefail
export PYTHON_VERSION=3.8
export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION=''
./.github/scripts/setup-env.sh
# Prepare conda
CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)"
conda activate ci
echo '::group::Install ONNX'
pip install --progress-bar=off onnx onnxruntime
echo '::endgroup::'
echo '::group::Install testing utilities'
pip install --progress-bar=off pytest
echo '::endgroup::'
echo '::group::Run ONNX tests'
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_onnx.py
echo '::endgroup::'
unittests-extended:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
repository: pytorch/vision
test-infra-ref: main
script: |
set -euo pipefail
export PYTHON_VERSION=3.8
export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION=''
./.github/scripts/setup-env.sh
# Prepare conda
CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)"
conda activate ci
echo '::group::Pre-download model weights'
pip install --progress-bar=off aiohttp aiofiles tqdm
python scripts/download_model_urls.py
echo '::endgroup::'
echo '::group::Install testing utilities'
# TODO: remove the <8 constraint on pytest when https://github.com/pytorch/vision/issues/8238 is closed
pip install --progress-bar=off "pytest<8"
echo '::endgroup::'
echo '::group::Run extended unittests'
export PYTORCH_TEST_WITH_EXTENDED=1
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_extended_*.py
echo '::endgroup::'
# unittests-macos:
# strategy:
# matrix:
# python-version:
# - "3.8"
# - "3.9"
# - "3.10"
# - "3.11"
# - "3.12"
# runner: ["macos-m1-stable"]
# fail-fast: false
# uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
# with:
# repository: pytorch/vision
# timeout: 240
# runner: ${{ matrix.runner }}
# test-infra-ref: main
# script: |
# set -euo pipefail

# export PYTHON_VERSION=${{ matrix.python-version }}
# export GPU_ARCH_TYPE=cpu
# export GPU_ARCH_VERSION=''

# ${CONDA_RUN} ./.github/scripts/unittest.sh

# unittests-windows:
# strategy:
# matrix:
# python-version:
# - "3.8"
# - "3.9"
# - "3.10"
# - "3.11"
# - "3.12"
# runner: ["windows.4xlarge"]
# gpu-arch-type: ["cpu"]
# include:
# - python-version: "3.8"
# runner: windows.g5.4xlarge.nvidia.gpu
# gpu-arch-type: cuda
# gpu-arch-version: "11.8"
# fail-fast: false
# uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
# with:
# repository: pytorch/vision
# runner: ${{ matrix.runner }}
# gpu-arch-type: ${{ matrix.gpu-arch-type }}
# gpu-arch-version: ${{ matrix.gpu-arch-version }}
# timeout: 120
# test-infra-ref: main
# script: |
# set -euxo pipefail

# export PYTHON_VERSION=${{ matrix.python-version }}
# export VC_YEAR=2019
# export VSDEVCMD_ARGS=""
# export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }}
# export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}

# ./.github/scripts/unittest.sh

# onnx:
# uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
# with:
# repository: pytorch/vision
# test-infra-ref: main
# script: |
# set -euo pipefail

# export PYTHON_VERSION=3.8
# export GPU_ARCH_TYPE=cpu
# export GPU_ARCH_VERSION=''

# ./.github/scripts/setup-env.sh

# # Prepare conda
# CONDA_PATH=$(which conda)
# eval "$(${CONDA_PATH} shell.bash hook)"
# conda activate ci

# echo '::group::Install ONNX'
# pip install --progress-bar=off onnx onnxruntime
# echo '::endgroup::'

# echo '::group::Install testing utilities'
# pip install --progress-bar=off pytest
# echo '::endgroup::'

# echo '::group::Run ONNX tests'
# pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_onnx.py
# echo '::endgroup::'

# unittests-extended:
# uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
# with:
# repository: pytorch/vision
# test-infra-ref: main
# script: |
# set -euo pipefail

# export PYTHON_VERSION=3.8
# export GPU_ARCH_TYPE=cpu
# export GPU_ARCH_VERSION=''

# ./.github/scripts/setup-env.sh

# # Prepare conda
# CONDA_PATH=$(which conda)
# eval "$(${CONDA_PATH} shell.bash hook)"
# conda activate ci

# echo '::group::Pre-download model weights'
# pip install --progress-bar=off aiohttp aiofiles tqdm
# python scripts/download_model_urls.py
# echo '::endgroup::'

# echo '::group::Install testing utilities'
# # TODO: remove the <8 constraint on pytest when https://github.com/pytorch/vision/issues/8238 is closed
# pip install --progress-bar=off "pytest<8"
# echo '::endgroup::'

# echo '::group::Run extended unittests'
# export PYTORCH_TEST_WITH_EXTENDED=1
# pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_extended_*.py
# echo '::endgroup::'

0 comments on commit 1555edf

Please sign in to comment.