Skip to content

Update GitHub Actions for recent TensorFlow and PyTorch versions - #115

Merged
paulnovello merged 4 commits into
masterfrom
env/update-test-envs
Dec 1, 2025
Merged

Update GitHub Actions for recent TensorFlow and PyTorch versions#115
paulnovello merged 4 commits into
masterfrom
env/update-test-envs

Conversation

@paulnovello

Copy link
Copy Markdown
Collaborator

Enhance the testing workflow by including support for newer versions of TensorFlow and PyTorch in GitHub Actions. This update ensures compatibility with Python 3.11 and 3.12, along with their respective library versions.

@github-actions

github-actions Bot commented Sep 15, 2025

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
3195 2907 91% 70% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
oodeel/init.py 100% 🟢
TOTAL 100% 🟢

updated for commit: a4ed251 by action🐍

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the testing infrastructure to support newer versions of TensorFlow and PyTorch while dropping support for Python 3.8 and adding Python 3.11 support. The changes focus on modernizing the CI/CD pipeline and ensuring compatibility with the latest library versions.

  • Upgrade TensorFlow support from versions 2.4-2.11 to 2.11-2.15
  • Upgrade PyTorch support from versions 1.7-2.0 to 1.13-2.6
  • Drop Python 3.8 support and add Python 3.11 support
  • Version bump from 0.3.0 to 0.4.0

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
.github/workflows/python-tests-torch.yml Updates PyTorch testing matrix to use Python 3.9-3.11 with newer PyTorch versions
.github/workflows/python-tests-tf.yml Updates TensorFlow testing matrix to use Python 3.9-3.11 with newer TensorFlow versions
.github/workflows/python-linters.yml Updates linting workflow to support Python 3.9-3.11
.github/workflows/python-coverage-report.yml Updates coverage testing to use Python 3.10 with TensorFlow 2.15 and PyTorch 2.2
setup.cfg Comprehensive update of tox environments with new library versions and dependency specifications
setup.py Removes faiss_gpu dependency and bumps version to 0.4.0
oodeel/init.py Updates package version to 0.4.0
.bumpversion.cfg Updates version configuration to 0.4.0
docs/index.md Updates compatibility table with new Python and library versions
README.md Updates compatibility table with new Python and library versions
tests/tests_torch/datasets/test_torch_datahandler.py Fixes batch size assertions to handle smaller datasets
tests/tests_tensorflow/datasets/test_tf_datahandler.py Fixes batch size assertions to handle smaller datasets

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

torch-version: 2.6

steps:
- uses: actions/checkout@v3

Copilot AI Sep 18, 2025

Copy link

Choose a reason for hiding this comment

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

The Python setup step was removed but shell configuration bash -el {0} suggests conda/mamba environment usage. Without the Python setup step, the workflow may fail if the default Python version doesn't match the matrix requirements.

Suggested change
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Copilot uses AI. Check for mistakes.
tf-version: 2.15

steps:
- uses: actions/checkout@v3

Copilot AI Sep 18, 2025

Copy link

Choose a reason for hiding this comment

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

The Python setup step was removed but shell configuration bash -el {0} suggests conda/mamba environment usage. Without the Python setup step, the workflow may fail if the default Python version doesn't match the matrix requirements.

Suggested change
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Copilot uses AI. Check for mistakes.
torch-version: "2.2"

steps:
- uses: actions/checkout@v3

Copilot AI Sep 18, 2025

Copy link

Choose a reason for hiding this comment

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

The Python setup step was removed but shell configuration bash -el {0} suggests conda/mamba environment usage. Without the Python setup step, the workflow may fail if the default Python version doesn't match the matrix requirements.

Suggested change
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Copilot uses AI. Check for mistakes.
Comment thread setup.cfg
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
E203

Copilot AI Sep 18, 2025

Copy link

Choose a reason for hiding this comment

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

The trailing comma was removed from the extend-ignore configuration. This change makes it harder to add new ignore codes in the future and goes against common formatting practices for configuration lists.

Suggested change
E203
E203,

Copilot uses AI. Check for mistakes.
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not so important, but Python 3.9 support will end very soon (in the next weeks). We could already test with 3.10 to 3.12 (or even 3.13).

@paulnovello
paulnovello merged commit 70ec56a into master Dec 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants