Skip to content

Add Python 3.14 to testing matrix - #8096

Merged
dschult merged 3 commits into
networkx:mainfrom
rossbar:python3.14-init-test
Jun 5, 2025
Merged

dschult merged 3 commits into
networkx:mainfrom
rossbar:python3.14-init-test

Conversation

@rossbar

@rossbar rossbar commented Jun 3, 2025 •

Copy link
Copy Markdown
Contributor

Inspired by #8091 - adds Python 3.14 to the testing matrix in CI. Specifically, it adds 3.14 testing only to the base jobs, i.e. the ones without dependencies. This is to avoid conflicts for default dependencies that do not yet supply 3.14 wheels (it looks like only NumPy does so at this point).

Also includes a fix for #8091 which fails on Pythoon 3.14. I'm happy to break this out in a follow-up PR if folks prefer to keep the CI config/code changes separate.
Fizes #8091

Finally - I arbitrarily chose to include 3.14 both with and without free-threaded support (the 3.14t-dev). In principle this shouldn't affect networkx at all (i.e. networkx without dependencies) so we could remove it.

@Peiffap Peiffap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! +0 on making separate PRs for these issues, especially if we want to consider free-threading on 3.13 as well (see comment).

matrix:
os: [ubuntu, macos, windows]
python-version: ["3.13"]
python-version: ["3.13", "3.14-dev", "3.14t-dev"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Doesn't 3.13 have experimental free-threading support too?
It'd be nice imo to test free-threading with dependencies where it might actually break stuff.

That's probably a separate issue from this PR, though. In general, I'm +1 on testing more extensively!

@dschult dschult linked an issue Jun 5, 2025 that may be closed by this pull request
@dschult

dschult commented Jun 5, 2025

Copy link
Copy Markdown
Member

Thanks @rossbar!!

@dschult
dschult merged commit d85b04a into networkx:main Jun 5, 2025
amcandio pushed a commit to amcandio/networkx that referenced this pull request Jul 20, 2025
* Add Python 3.14 to CI testing w/out dependencies.

* Fix networkxgh-8091

---------

Co-authored-by: Dan Schult <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Test failures with Python 3.14.0b2

3 participants