Skip to content

Commit 09de954

Browse files
committed
Fix CI: Install package in development mode
- Use 'pip install -e .' to install package in editable mode - This ensures 'src' module is properly discoverable - Use 'python -m pytest' for consistent module resolution - Fixes ModuleNotFoundError in CI environment
1 parent 32f9603 commit 09de954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
run: |
2727
python -m pip install --upgrade pip
2828
python -m pip install wheel setuptools
29-
pip install click pyyaml python-dotenv
29+
pip install -e .
3030
pip install pytest pytest-cov pytest-mock freezegun
3131
3232
- name: Run tests with coverage
3333
run: |
34-
pytest tests/ --cov=src --cov-report=xml --cov-report=term-missing
34+
python -m pytest tests/ --cov=src --cov-report=xml --cov-report=term-missing
3535
3636
- name: Upload coverage to Codecov
3737
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'

0 commit comments

Comments
 (0)