Skip to content

Update c-code test template: pre-install cffi and switch coveralls action - #421

Merged
icemac merged 2 commits into
masterfrom
fix-c-code-template-cffi-coveralls
May 21, 2026
Merged

Update c-code test template: pre-install cffi and switch coveralls action#421
icemac merged 2 commits into
masterfrom
fix-c-code-template-cffi-coveralls

Conversation

@icemac

@icemac icemac commented May 19, 2026

Copy link
Copy Markdown
Member

On ARM64 macOS runners, the x86_64 cross-compilation step causes setup_requires/fetch_build_eggs to build cffi from source with x86_64 flags (no pre-built wheel exists yet for future Python). Python (arm64) then cannot load the x86_64 _cffi_backend.so. Pre-installing cffi and pycparser via pip ensures they are available natively.

Also switches the coveralls action from the unmaintained AndreMiras/coveralls-python-action@develop to coverallsapp/github-action@v2. Somehow nowadays only actions from the Marketplace can be used.

Based on zopefoundation/persistent#233.

…tion

- Add cffi and pycparser to future Python build deps to fix macOS ARM64 builds
- Switch from AndreMiras/coveralls-python-action@develop to coverallsapp/github-action@v2

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@icemac
icemac requested a review from dataflake May 19, 2026 06:55
@icemac
icemac enabled auto-merge (squash) May 19, 2026 06:56
@icemac
icemac merged commit b2dc8de into master May 21, 2026
14 checks passed
@icemac
icemac deleted the fix-c-code-template-cffi-coveralls branch May 21, 2026 06:22
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 26209224080

Coverage remained the same at 14.843%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 1266
Covered Lines: 250
Line Coverage: 19.75%
Relevant Branches: 452
Covered Branches: 5
Branch Coverage: 1.11%
Branches in Coverage %: Yes
Coverage Strength: 0.2 hits per line

💛 - Coveralls

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.

3 participants