Skip to content

02 ci - #101

Merged
eriknw merged 4 commits into
python-graphblas:mainfrom
eriknw:02-ci
Nov 20, 2026
Merged

02 ci#101
eriknw merged 4 commits into
python-graphblas:mainfrom
eriknw:02-ci

Conversation

@eriknw

@eriknw eriknw commented Nov 20, 2026

Copy link
Copy Markdown
Member

Sane updates (not just modernization) of CI

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

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.65%. Comparing base (35dbc90) to head (5258588).
⚠️ Report is 1 commits behind head on main.

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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eriknw
eriknw merged commit cde92b4 into python-graphblas:main Nov 20, 2026
34 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.

1 participant