[ci] Use python 3.12 as default #3786
Merged
andrey-churkin merged 13 commits intoopenvinotoolkit:developfrom Apr 7, 2026
Merged
[ci] Use python 3.12 as default #3786andrey-churkin merged 13 commits intoopenvinotoolkit:developfrom
andrey-churkin merged 13 commits intoopenvinotoolkit:developfrom
Conversation
f68f444 to
5321812
Compare
2655f2e to
199afce
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repository CI and documentation baseline to use Python 3.12 by default, along with related dependency bumps and workflow adjustments.
Changes:
- Switch GitHub Actions workflows to run on Python 3.12 by default.
- Update
docs/Installation.mdand the docs test that validates documented versions. - Refresh several requirements files (TensorBoard / tensorflow-io / docs build deps, add pandas to select examples, and update
whowhatbenchsource).
Reviewed changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
tests/post_training/requirements.txt |
Bumps TensorBoard/tensorflow-io; changes whowhatbench git source. |
tests/docs/test_md_instalation.py |
Updates parsing/regex to validate Python version format used in docs/workflows. |
src/nncf/tensor/functions/torch_numeric.py |
Removes a type: ignore around np.ma.array(...). |
src/nncf/tensor/functions/numpy_numeric.py |
Adjusts numpy dtype typing and removes some type ignores around masked array creation / finfo. |
examples/quantization_aware_training/torch/anomalib/requirements.txt |
Adds pandas. |
examples/post_training_quantization/openvino/anomaly_stfpm_quantize_with_accuracy_control/requirements.txt |
Adds pandas. |
examples/llm_compression/torch/downstream_qat_with_nls/requirements.txt |
Bumps TensorBoard. |
examples/llm_compression/torch/distillation_qat_with_lora/requirements.txt |
Bumps TensorBoard. |
examples/llm_compression/openvino/tiny_llama_find_hyperparams/requirements.txt |
Changes whowhatbench git source. |
docs/Installation.md |
Updates stated tested Python version and corresponding versions table. |
docs/api/requirements.txt |
Updates Sphinx toolchain requirements. |
.github/workflows/sdl.yml |
Uses Python 3.12. |
.github/workflows/python-publish.yml |
Uses Python 3.12 for publish job. |
.github/workflows/precommit.yml |
Passes Python 3.12 into reusable precommit workflow. |
.github/workflows/pre-commit-linters.yml |
Uses Python 3.12; trims trailing whitespace. |
.github/workflows/nightly.yml |
Updates nightly precommit calls to Python 3.12. |
.github/workflows/mypy.yml |
Uses Python 3.12. |
.github/workflows/macos.yml |
Uses Python 3.12. |
.github/workflows/install.yml |
Uses Python 3.12. |
.github/workflows/gptqmodel.yml |
Uses Python 3.12. |
.github/workflows/examples.yml |
Sets workflow env PYTHON_VERSION to 3.12. |
.github/workflows/conformance_weight_compression.yml |
Sets workflow env PYTHON_VERSION to 3.12. |
.github/workflows/check_documentation.yml |
Uses Python 3.12. |
.github/workflows/build_html_doc.yml |
Uses Python 3.12; installs project + doc requirements in one pip invocation. |
andrey-churkin
approved these changes
Apr 7, 2026
Merged
andrey-churkin
pushed a commit
that referenced
this pull request
Apr 8, 2026
### Changes Use `importlib.import_module` to check module instead of removed method since python3.12 ### Reason for changes https://github.com/openvinotoolkit/nncf/actions/runs/24110960527/job/70345151170 ``` loader.find_module(module_name).load_module(module_name) ^^^^^^^^^^^^^^^^^^ AttributeError: 'FileFinder' object has no attribute 'find_module' ``` ### Related tickets #3786 ### Tests https://github.com/openvinotoolkit/nncf/actions/runs/24124889586
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Set python3.12 as default for all action
Update docs requaremets
Usee wwb from fork without unused requarements
Reason for changes
Python life cycle
Tests
https://github.com/openvinotoolkit/nncf/actions/runs/23938057201
https://github.com/openvinotoolkit/nncf/actions/runs/23938057203