ci: install Qt system libraries on the runner#1
Merged
Conversation
PySide6 dlopens libEGL.so.1 (and libxkbcommon0, libdbus-1-3) when pytest-qt imports QtGui in pytest_configure, before the offscreen platform set in tests/conftest.py can take effect. The ubuntu-latest image does not ship these libs, so every matrix leg fails with `ImportError: libEGL.so.1`. Install the minimal set via apt before `uv sync`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
mainsince the workflow was added — all three matrix legs (Python 3.11/3.12/3.13) fail atpytest_configurewithImportError: libEGL.so.1: cannot open shared object file.QtGuidlopenslibEGL.so.1(and a couple of friends) at import time, beforeQT_QPA_PLATFORM=offscreenfromtests/conftest.pycan take effect. Theubuntu-latestimage doesn't ship those libs.apt-get install -y libegl1 libxkbcommon0 libdbus-1-3step beforeuv sync. Minimal set; offscreen mode means we don't need the xcb stack.Test plan
Run testsstep no longer showsImportError: libEGL.so.1mainrun is also green🤖 Generated with Claude Code