Skip to content

Commit a547642

Browse files
linesightclaude
andcommitted
Fix cefpython3 not importable during unit tests
_test_runner.py os.chdir()s to unittests/, so the repo root (where cefpython3/ lives) falls off sys.path. Set PYTHONPATH to the workspace root so the package is findable without installing it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ca2374c commit a547642

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ jobs:
129129
130130
- name: Run unit tests
131131
run: python unittests/_test_runner.py
132+
env:
133+
PYTHONPATH: ${{ github.workspace }}
132134

133135
wheel:
134136
needs: test

0 commit comments

Comments
 (0)