• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moeyensj / difi / 24798476321
90%

Build:
DEFAULT BRANCH: main
Ran 22 Apr 2026 07:33PM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Apr 2026 07:32PM UTC coverage: 88.939%. Remained the same
24798476321

push

github

moeyensj
Add version-consistency check to guard Cargo/pyproject/tag drift

Today's rc6 publish partially failed: crates.io published difi-rs
v2.0.0-rc6 fine, but PyPI 400-rejected the upload because pyproject.toml
was still pinned at "2.0.0rc5" (from the prior release). maturin built
wheels named difi-2.0.0rc5-*.whl against an rc6 Cargo.toml, PyPI said
"File already exists", and the Publish workflow failed. The same class of
drift also explains why v2.0.0rc4 never got a tag (publish failed mid-way
and was abandoned).

This adds a shared check and wires it into both workflows so the drift
cannot reach a release again.

- `scripts/check_versions.sh` — single source of truth. Compares
  Cargo.toml (SemVer, e.g. `2.0.0-rc6`) against pyproject.toml (PEP 440,
  e.g. `2.0.0rc6`) on the PEP 440 normal form. Optionally takes a tag
  argument and verifies it matches both. Emits `::error::` annotations
  for GitHub Actions and a plain ✓ line for local use.

- `rust.yml` — runs the check on every PR inside the existing
  build-lint job, immediately after checkout. Drift is caught at PR time,
  not release time.

- `publish.yml` — new `preflight` job runs the check against the pushed
  tag before any artifact-producing job starts. publish-crate,
  build-wheels, and build-sdist all `needs: preflight`, so
  crates.io/PyPI cannot receive a build from an inconsistent tree.

Also bumps `pyproject.toml` from rc5 → rc6 so the check passes on this
PR and pyproject matches the rc6 state of Cargo.toml on main. This does
not re-publish rc6 (rc6 is live on crates.io and the PyPI slot is blocked
by rc5); the next release tag — rc7, when partitions lands — will be the
first to exercise the preflight end-to-end.

Verified locally:
- `./scripts/check_versions.sh` → pass
- `./scripts/check_versions.sh v2.0.0rc6` → pass
- `./scripts/check_versions.sh v2.0.0rc7` → fail (exit 1, two error lines)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

2187 of 2459 relevant lines covered (88.94%)

244.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24798476321.1 22 Apr 2026 07:33PM UTC 14
88.94
GitHub Action Run
Source Files on build 24798476321
  • Tree
  • List 14
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24798476321
  • d680bfac on github
  • Prev Build on main (#24795249500)
  • Next Build on main (#24811935441)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc