Skip to content

Commit ac27a1d

Browse files
committed
ensure mambular is locally installed
1 parent 1fcb030 commit ac27a1d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/pr-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- name: Install Poetry
2323
run: |
2424
curl -sSL https://install.python-poetry.org | python3 -
25+
echo "$HOME/.local/bin" >> $GITHUB_PATH
2526
export PATH="$HOME/.local/bin:$PATH"
2627
2728
- name: Install Dependencies
@@ -30,7 +31,14 @@ jobs:
3031
poetry install
3132
pip install pytest
3233
34+
- name: Install Package Locally
35+
run: |
36+
poetry build
37+
pip install dist/*.whl # Install the built package to fix "No module named 'mambular'"
38+
3339
- name: Run Unit Tests
40+
env:
41+
PYTHONPATH: ${{ github.workspace }} # Ensure the package is discoverable
3442
run: pytest tests/
3543

3644
- name: Verify Tests Passed

0 commit comments

Comments
 (0)