Skip to content

Commit c21b183

Browse files
BitHighlanderclaude
andcommitted
fix(ci): add keepkeylib to PYTHONPATH for bare protobuf imports
Generated protobuf files (messages_pb2.py) use bare imports like `import types_pb2` instead of relative imports. This works inside the firmware Docker container where keepkeylib/ is on sys.path directly, but fails with pip install -e. Adding keepkeylib/ to PYTHONPATH resolves the import chain. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 02bbf44 commit c21b183

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
9191
env:
9292
KK_TRANSPORT_MAIN: "127.0.0.1:11044"
9393
KK_TRANSPORT_DEBUG: "127.0.0.1:11045"
94+
PYTHONPATH: "${{ github.workspace }}/keepkeylib:${{ github.workspace }}"
9495
run: |
9596
cd tests
9697
pytest -v --junitxml=junit.xml 2>&1 | tee pytest-output.txt

0 commit comments

Comments
 (0)