Skip to content

Commit

Permalink
[fbsync] consolidate test workflows (#7574)
Browse files Browse the repository at this point in the history
Reviewed By: vmoens

Differential Revision: D45903807

fbshipit-source-id: 7a451e746728a17e973a9de3e9d0672cf9514eb9
  • Loading branch information
NicolasHug authored and facebook-github-bot committed May 16, 2023
1 parent 9b744f7 commit eed7224
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 85 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/test-macos.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/test-windows.yml

This file was deleted.

65 changes: 63 additions & 2 deletions .github/workflows/test-linux.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests on Linux
name: Tests

on:
pull_request:
Expand All @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
unittests:
unittests-linux:
strategy:
matrix:
python-version:
Expand Down Expand Up @@ -41,6 +41,67 @@ jobs:
export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}
./.github/scripts/unittest.sh
unittests-macos:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
runner: ["macos-12"]
include:
- python-version: "3.8"
runner: macos-m1-12
fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
with:
repository: pytorch/vision
# We need an increased timeout here, since the macos-12 runner is the free one from GH
# and needs roughly 2 hours to just run the test suite
timeout: 240
runner: ${{ matrix.runner }}
script: |
set -euo pipefail
export PYTHON_VERSION=${{ matrix.python-version }}
export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION=''
./.github/scripts/unittest.sh
unittests-windows:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
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.7"
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
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 }}
./.github/scripts/unittest.sh
onnx:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
Expand Down

0 comments on commit eed7224

Please sign in to comment.