Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Moving CI Test to Python 3.12#6234

Merged
sw005320 merged 23 commits intoespnet:masterfrom
Fhrozen:pr-python312
Sep 10, 2025
Merged

Moving CI Test to Python 3.12#6234
sw005320 merged 23 commits intoespnet:masterfrom
Fhrozen:pr-python312

Conversation

@Fhrozen
Copy link
Member

@Fhrozen Fhrozen commented Sep 10, 2025

Notes

This is a continuation of #6221 after observing some issues with Python 3.12 during CI tests. This is necessary because Google Colab works on 3.12, and the previous PR only targets upgrading the numpy version. In this PR, I will target these issues by raising Python 3.11 to 3.12 in CI tests.

What did you change?

This pull request updates the project's CI and documentation to replace Python 3.11 with Python 3.12 in the supported test matrix. The changes ensure that all references to Python 3.11 are removed and replaced with Python 3.12 for Ubuntu-based testing environments.

CI configuration updates:

  • Updated the GitHub Actions workflow matrix in .github/workflows/ci_on_ubuntu.yml to test against Python 3.12 instead of Python 3.11. [1] [2]

Documentation updates:

  • Modified the README.md to reflect the change from Python 3.11 to Python 3.12 in the CI status badge table.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. CI Travis, Circle CI, etc Documentation labels Sep 10, 2025
@mergify mergify bot added the README label Sep 10, 2025
@Fhrozen Fhrozen requested a review from Copilot September 10, 2025 00:37
Copy link
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

This PR upgrades the CI testing matrix to use Python 3.12 instead of Python 3.11, aligning with Google Colab's Python version and continuing work from PR #6221.

  • Updated GitHub Actions CI workflow to test against Python 3.12 instead of 3.11
  • Modified documentation to reflect the Python version change in CI status badges

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci_on_ubuntu.yml Updated CI matrix to replace Python 3.11 with 3.12 in both test job configurations
README.md Updated CI status badge table to reflect Python 3.12 instead of 3.11

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

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the CI test environment from Python 3.11 to 3.12. The change in README.md correctly updates the CI status table in the documentation to reflect this. The modification is consistent with the stated goal of the pull request. After reviewing the provided changes, I have not identified any issues of high or critical severity.

@mergify mergify bot added the Installation label Sep 10, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Sep 10, 2025
@codecov
Copy link

codecov bot commented Sep 10, 2025

Codecov Report

❌ Patch coverage is 88.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.82%. Comparing base (c1f8981) to head (305e08f).
⚠️ Report is 54 commits behind head on master.

Files with missing lines Patch % Lines
espnet2/asr/state_spaces/s4.py 0.00% 2 Missing ⚠️
espnet2/tasks/gan_svs.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6234      +/-   ##
==========================================
- Coverage   55.82%   55.82%   -0.01%     
==========================================
  Files         884      889       +5     
  Lines       84013    84275     +262     
==========================================
+ Hits        46903    47049     +146     
- Misses      37110    37226     +116     
Flag Coverage Δ
test_integration_espnet2 46.15% <84.21%> (-0.02%) ⬇️
test_integration_espnetez 36.94% <72.72%> (+<0.01%) ⬆️
test_python_espnet2 50.53% <68.00%> (+0.01%) ⬆️
test_python_espnetez 12.82% <0.00%> (-0.02%) ⬇️
test_utils 18.77% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dosubot dosubot bot removed the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 10, 2025
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Sep 10, 2025
@mergify mergify bot added the ESPnet2 label Sep 10, 2025
@Fhrozen
Copy link
Member Author

Fhrozen commented Sep 10, 2025

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the CI to use Python 3.12, along with necessary dependency and documentation updates. It also introduces a new script, utils/apply_code_fixes.py, to automatically fix code style issues, and applies its formatting across numerous files. While the overall changes are beneficial, the new script contains a couple of regular expression-based fixes that are overly aggressive and could introduce new style violations. I've provided specific feedback on these issues.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 10, 2025
@sw005320 sw005320 merged commit 0873228 into espnet:master Sep 10, 2025
33 checks passed
@sw005320
Copy link
Contributor

Thanks, @Fhrozen!
This helps many of our projects based on Google Colab

@Fhrozen Fhrozen deleted the pr-python312 branch September 10, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Travis, Circle CI, etc Documentation ESPnet2 Installation lgtm This PR has been approved by a maintainer README size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants