Commit ecf9685
ci(validate): install pytest and gate python suites on real test files
The build-and-test job failed with "No module named pytest": the Python
step ran `python -m pytest` but only `pip install -e services/<svc>`, which
omits pytest (declared in the service's `dev` extra). It also ran pytest
whenever a tests/ dir existed, but early modules ship a tests/ dir with only
a README, so pytest would exit 5 (no tests collected).
Only run pytest when real test files (test_*.py / *_test.py) are present, and
in that case install the dev extra (pins pytest/pytest-asyncio) with a direct
pytest install as a fallback so `python -m pytest` is always available.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3750cefd-d322-4f02-9184-c8ac3eba2fff1 parent d7520d7 commit ecf9685
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
0 commit comments