Skip to content

Commit fc52bef

Browse files
committed
Fix GitHub Actions workflow: simplify package installation
- Remove redundant pip install and package building steps - Poetry install already installs the package in editable mode - This fixes conflicts between Poetry and pip installations
1 parent 262bc49 commit fc52bef

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/pr-tests.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,10 @@ jobs:
3434
cache: 'poetry'
3535

3636
- name: Install Dependencies
37-
run: |
38-
python -m pip install --upgrade pip
39-
poetry install
40-
pip install pytest
41-
42-
- name: Install Package Locally
43-
run: |
44-
poetry build
45-
pip install dist/*.whl # Install the built package to fix "No module named 'deeptabular'"
37+
run: poetry install
4638

4739
- name: Run Unit Tests
48-
env:
49-
PYTHONPATH: ${{ github.workspace }} # Ensure the package is discoverable
50-
run: poetry run pytest tests/
51-
shell: bash
40+
run: poetry run pytest tests/ -v
5241

5342
- name: Verify Tests Passed
5443
if: ${{ success() }}

0 commit comments

Comments
 (0)