"projects/git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "771cf8a328e48da9d369385240ef14f38409c2ee"
Unverified Commit eb815aef authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Add 3.12 to unittest CI jobs (#8299)

parent 8afd5476
...@@ -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:
......
...@@ -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:
......
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment