Skip to content

Commit 1e296bf

Browse files
Fix CI: Standardize PYTHONPATH
1 parent 6661fee commit 1e296bf

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,14 @@ jobs:
4343

4444
- name: Import smoke test
4545
env:
46-
PYTHONPATH: .
46+
PYTHONPATH: ${{ github.workspace }}
4747
GEMINI_API_KEY: "dummy_key_for_ci"
4848
run: |
49-
python - <<'PY'
50-
import importlib
51-
importlib.import_module('backend')
52-
print('backend import OK')
53-
PY
49+
python -c "import sys; sys.path.append('.'); import backend; print('backend import OK')"
5450
5551
- name: Run tests
5652
env:
57-
PYTHONPATH: .
53+
PYTHONPATH: ${{ github.workspace }}
5854
GEMINI_API_KEY: "dummy_key_for_ci"
5955
run: pytest -q
6056

0 commit comments

Comments
 (0)