Commit 42169a6
committed
fix: Set PYTHONPATH in CI to resolve ModuleNotFoundError
Updates the backend testing workflow (`.github/workflows/backend-tests.yml`)
to explicitly set `PYTHONPATH=.` for the pytest execution step.
This ensures that modules within the `backend/app` directory are correctly
discovered and imported by pytest during CI runs, addressing the
`ModuleNotFoundError: No module named 'app.main'` error previously
encountered.1 parent 30e4db3 commit 42169a6
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
0 commit comments