Skip to content

[ci] Use python 3.12 as default #3786

Merged
andrey-churkin merged 13 commits intoopenvinotoolkit:developfrom
AlexanderDokuchaev:ad/p312_as_default
Apr 7, 2026
Merged

[ci] Use python 3.12 as default #3786
andrey-churkin merged 13 commits intoopenvinotoolkit:developfrom
AlexanderDokuchaev:ad/p312_as_default

Conversation

@AlexanderDokuchaev
Copy link
Copy Markdown
Collaborator

@AlexanderDokuchaev AlexanderDokuchaev commented Dec 11, 2025

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

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Dec 11, 2025
@AlexanderDokuchaev AlexanderDokuchaev changed the title [ci] Python 3.12 [ci] Use python 3.12 as default Dec 19, 2025
@github-actions github-actions Bot added the NNCF PTQ Pull requests that updates NNCF PTQ label Dec 19, 2025
@github-actions github-actions Bot added NNCF OpenVINO Pull requests that updates NNCF OpenVINO API Public API-impacting changes labels Apr 2, 2026
@AlexanderDokuchaev AlexanderDokuchaev marked this pull request as ready for review April 3, 2026 13:27
@AlexanderDokuchaev AlexanderDokuchaev requested a review from a team as a code owner April 3, 2026 13:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md and the docs test that validates documented versions.
  • Refresh several requirements files (TensorBoard / tensorflow-io / docs build deps, add pandas to select examples, and update whowhatbench source).

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.

Comment thread tests/post_training/requirements.txt
Comment thread .github/workflows/nightly.yml Outdated
Comment thread .github/workflows/nightly.yml Outdated
@andrey-churkin andrey-churkin merged commit 33992f3 into openvinotoolkit:develop Apr 7, 2026
19 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Public API-impacting changes documentation Improvements or additions to documentation NNCF OpenVINO Pull requests that updates NNCF OpenVINO NNCF PTQ Pull requests that updates NNCF PTQ

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants