Skip to content

CI - Fix pygraphviz compilation error in GitHub CI#49

Merged
bordumb merged 1 commit intomainfrom
dev-ciFix
Sep 24, 2025
Merged

CI - Fix pygraphviz compilation error in GitHub CI#49
bordumb merged 1 commit intomainfrom
dev-ciFix

Conversation

@bordumb
Copy link
Contributor

@bordumb bordumb commented Sep 24, 2025

Fix pygraphviz compilation error in GitHub CI

Problem: CI was failing during poetry install with fatal error: graphviz/cgraph.h: No such file or directory when trying to compile the pygraphviz package.

Root Cause: System dependencies (Graphviz development headers) were being installed after Poetry tried to install Python dependencies, causing pygraphviz compilation to fail.

Solution:

  • Moved system dependency installation to occur before Poetry installation
  • Updated cache key to invalidate existing cache
  • Simplified verification step since pygraphviz is now available in all jobs

Changes:

  • Reordered CI steps to install build-essential, graphviz-dev, and libgraphviz-dev before poetry install
  • Removed conditional Graphviz installation logic for cleaner workflow

Fixes the CI pipeline so all jobs can successfully install dependencies including pygraphviz.

@bordumb bordumb self-assigned this Sep 24, 2025
@bordumb bordumb merged commit 0a4f634 into main Sep 24, 2025
3 checks passed
@bordumb bordumb deleted the dev-ciFix branch September 24, 2025 21:38
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