Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
62c22317
Unverified
Commit
62c22317
authored
May 11, 2023
by
Philip Meier
Committed by
GitHub
May 11, 2023
Browse files
consolidate test workflows (#7574)
parent
84727dd7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
85 deletions
+63
-85
.github/workflows/test-macos.yml
.github/workflows/test-macos.yml
+0
-40
.github/workflows/test-windows.yml
.github/workflows/test-windows.yml
+0
-43
.github/workflows/tests.yml
.github/workflows/tests.yml
+63
-2
No files found.
.github/workflows/test-macos.yml
deleted
100644 → 0
View file @
84727dd7
name
:
Tests on macOS
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
:
[
"
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
.github/workflows/test-windows.yml
deleted
100644 → 0
View file @
84727dd7
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"
]
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
.github/workflows/test
-linux
.yml
→
.github/workflows/test
s
.yml
View file @
62c22317
name
:
Tests
on Linux
name
:
Tests
on
:
on
:
pull_request
:
pull_request
:
...
@@ -10,7 +10,7 @@ on:
...
@@ -10,7 +10,7 @@ on:
workflow_dispatch
:
workflow_dispatch
:
jobs
:
jobs
:
unittests
:
unittests
-linux
:
strategy
:
strategy
:
matrix
:
matrix
:
python-version
:
python-version
:
...
@@ -42,6 +42,67 @@ jobs:
...
@@ -42,6 +42,67 @@ jobs:
./.github/scripts/unittest.sh
./.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
:
onnx
:
uses
:
pytorch/test-infra/.github/workflows/linux_job.yml@main
uses
:
pytorch/test-infra/.github/workflows/linux_job.yml@main
with
:
with
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment