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
eb815aef
Unverified
Commit
eb815aef
authored
Mar 13, 2024
by
Nicolas Hug
Committed by
GitHub
Mar 13, 2024
Browse files
Add 3.12 to unittest CI jobs (#8299)
parent
8afd5476
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
.github/workflows/prototype-tests-linux-gpu.yml
.github/workflows/prototype-tests-linux-gpu.yml
+1
-0
.github/workflows/tests.yml
.github/workflows/tests.yml
+3
-0
test/test_transforms_v2.py
test/test_transforms_v2.py
+6
-1
No files found.
.github/workflows/prototype-tests-linux-gpu.yml
View file @
eb815aef
...
@@ -12,6 +12,7 @@ jobs:
...
@@ -12,6 +12,7 @@ jobs:
-
"
3.9"
-
"
3.9"
-
"
3.10"
-
"
3.10"
-
"
3.11"
-
"
3.11"
-
"
3.12"
runner
:
[
"
linux.12xlarge"
]
runner
:
[
"
linux.12xlarge"
]
gpu-arch-type
:
[
"
cpu"
]
gpu-arch-type
:
[
"
cpu"
]
include
:
include
:
...
...
.github/workflows/tests.yml
View file @
eb815aef
...
@@ -18,6 +18,7 @@ jobs:
...
@@ -18,6 +18,7 @@ jobs:
-
"
3.9"
-
"
3.9"
-
"
3.10"
-
"
3.10"
-
"
3.11"
-
"
3.11"
-
"
3.12"
runner
:
[
"
linux.12xlarge"
]
runner
:
[
"
linux.12xlarge"
]
gpu-arch-type
:
[
"
cpu"
]
gpu-arch-type
:
[
"
cpu"
]
include
:
include
:
...
@@ -51,6 +52,7 @@ jobs:
...
@@ -51,6 +52,7 @@ jobs:
-
"
3.9"
-
"
3.9"
-
"
3.10"
-
"
3.10"
-
"
3.11"
-
"
3.11"
-
"
3.12"
runner
:
[
"
macos-12"
]
runner
:
[
"
macos-12"
]
include
:
include
:
-
python-version
:
"
3.8"
-
python-version
:
"
3.8"
...
@@ -81,6 +83,7 @@ jobs:
...
@@ -81,6 +83,7 @@ jobs:
-
"
3.9"
-
"
3.9"
-
"
3.10"
-
"
3.10"
-
"
3.11"
-
"
3.11"
-
"
3.12"
runner
:
[
"
windows.4xlarge"
]
runner
:
[
"
windows.4xlarge"
]
gpu-arch-type
:
[
"
cpu"
]
gpu-arch-type
:
[
"
cpu"
]
include
:
include
:
...
...
test/test_transforms_v2.py
View file @
eb815aef
...
@@ -54,7 +54,12 @@ from torchvision.transforms.v2.functional._utils import _get_kernel, _register_k
...
@@ -54,7 +54,12 @@ from torchvision.transforms.v2.functional._utils import _get_kernel, _register_k
# turns all warnings into errors for this module
# turns all warnings into errors for this module
pytestmark
=
pytest
.
mark
.
filterwarnings
(
"error"
)
pytestmark
=
[
pytest
.
mark
.
filterwarnings
(
"error"
)]
if
sys
.
version_info
[:
2
]
>=
(
3
,
12
):
# torchscript relies on some AST stuff that got deprecated in 3.12,
# so we have to explicitly ignore those otherwise we'd error on warnings due to the pytestmark filter above.
pytestmark
.
append
(
pytest
.
mark
.
filterwarnings
(
"ignore::DeprecationWarning"
))
@
pytest
.
fixture
(
autouse
=
True
)
@
pytest
.
fixture
(
autouse
=
True
)
...
...
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