Update CI to Python 3.12 (#20366)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Glenn Jocher 2025-04-29 23:52:46 +02:00 committed by GitHub
parent 40b6bf67e8
commit 2c242bcb06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -49,7 +49,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
@ -103,7 +103,7 @@ jobs:
matrix:
# Temporarily disable windows-latest due to https://github.com/ultralytics/ultralytics/actions/runs/13020330819/job/36319338854?pr=18921
os: [ubuntu-latest, macos-14, ubuntu-24.04-arm]
python-version: ["3.11"]
python-version: ["3.12"]
model: [yolo11n]
steps:
- uses: actions/checkout@v4
@ -164,7 +164,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14, windows-latest, ubuntu-24.04-arm]
python-version: ["3.11"]
python-version: ["3.12"]
torch: [latest]
include:
- os: ubuntu-latest
@ -303,7 +303,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.11"]
python-version: ["3.12"]
defaults:
run:
shell: bash -el {0}

View File

@ -636,6 +636,8 @@ class Exporter:
if self.args.int8:
fq = str(self.file).replace(self.file.suffix, f"_int8_openvino_model{os.sep}")
fq_ov = str(Path(fq) / self.file.with_suffix(".xml").name)
# INT8 requires nncf, nncf requires packaging>=23.2 https://github.com/openvinotoolkit/nncf/issues/3463
check_requirements("packaging>=23.2") # must be installed first to build nncf wheel
check_requirements("nncf>=2.14.0")
import nncf