Repository navigation
02 ci - #101
Merged
Merged
02 ci#101
Conversation
The floor said >=2023.1.0. It is now 2026.11.0, the release this package is developed against, which lifts the suitesparse-graphblas <10 cap of 2025.2.0, whose 9.x builds stop at Python 3.13. graphblas.io.from_networkx builds a scipy sparse array first, so every call dispatched on a NetworkX graph needs scipy, which this package did not declare. scipy is now a dependency, at 1.11.2: the floor NetworkX 3.6.1 declares, which is above python-graphblas's own (1.9). The test extra's scipy floor rises to match. The README says why scipy is needed.
The pytest matrix gains Python 3.14 and 3.15 and a NetworkX axis: 3.6.1, the last patch of the oldest NetworkX this backend supports, and the newest on conda-forge, which warns when a NetworkX release changes what the backend meets. Python 3.11 runs 3.6.1 only, since NetworkX 3.7 requires Python 3.12 and "latest" would install 3.6.1 again. The two extra architectures take Python 3.13 and NetworkX 3.6.1. The comment about installing other NetworkX versions by hand goes. The NetworkX suite job runs on both NetworkX versions, still advisory, and its summary and annotation name the version. The cells are renamed "pytest (os, pyX, nxY)". The package declares Python 3.14 and 3.15. black targets 3.14 but not yet 3.15, as in python-graphblas: a black that does not know py315 refuses to run on the project, and conda-forge's black for Python 3.15 is still one.
The publish job uploaded with an API token stored as a repository secret. With trusted publishing a job mints a short-lived OIDC token (id-token: write) that PyPI exchanges for upload rights, so there is no long-lived credential to leak or rotate. The upload moves to a job of its own, which downloads the built files and is the only one allowed to mint the token; the build job, which installs and runs build and twine, is not. The upload job declares the environment pypi for the registration to name. The registration is made on PyPI, not here; a tag pushed before it exists fails at the upload.
Codecov takes uploads without a token from forks, not from this repository's own branches. Both coverage steps now pass the CODECOV_TOKEN secret; until the secret exists they behave as before. act, which runs these workflows locally, sets ACT and GitHub does not. Both coverage steps are skipped when it is set, so a local run uploads no report.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #101 +/- ##
==========================================
- Coverage 76.82% 75.65% -1.17%
==========================================
Files 118 120 +2
Lines 4271 4403 +132
Branches 818 727 -91
==========================================
+ Hits 3281 3331 +50
- Misses 751 820 +69
- Partials 239 252 +13 🚀 New features to boost your workflow:
|
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.
Sane updates (not just modernization) of CI