"...text-generation-inference.git" did not exist on "158540446410cb231380f72ccc8449562939c8b3"
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:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runner: ["linux.12xlarge"]
gpu-arch-type: ["cpu"]
include:
......
......@@ -18,6 +18,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runner: ["linux.12xlarge"]
gpu-arch-type: ["cpu"]
include:
......@@ -51,6 +52,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runner: ["macos-12"]
include:
- python-version: "3.8"
......@@ -81,6 +83,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runner: ["windows.4xlarge"]
gpu-arch-type: ["cpu"]
include:
......
......@@ -54,7 +54,12 @@ from torchvision.transforms.v2.functional._utils import _get_kernel, _register_k
# 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)
......
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