Skip to content

Commit fd28eb5

Browse files
Prerak SinghPrerak Singh
authored andcommitted
bug fix
1 parent 25e3f60 commit fd28eb5

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,16 @@ jobs:
108108
env:
109109
CXXFLAGS: "-std=c++17"
110110
run: |
111-
PREFIX=$(python -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
112-
meson setup build --prefix=$PREFIX --wipe
111+
meson setup build --wipe
113112
meson compile -C build
114-
meson install -C build
113+
meson install -C build --destdir=$PWD/install
115114
116115
- name: Run tests
117116
run: |
118-
python -m pytest --import-mode=importlib pydatastructs
117+
export PYTHONPATH=$PWD/install/usr/local/lib/python${{ matrix.python-version }}/site-packages:$PYTHONPATH
118+
cd /tmp
119+
python -c "import pydatastructs; print(pydatastructs.__file__)"
120+
python -m pytest --pyargs pydatastructs -v
119121
120122
- name: Build Documentation
121123
run: |
@@ -156,14 +158,16 @@ jobs:
156158
MACOSX_DEPLOYMENT_TARGET: 11.0
157159
CXXFLAGS: "-std=c++17"
158160
run: |
159-
PREFIX=$(python -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
160-
meson setup build --prefix=$PREFIX --wipe
161+
meson setup build --wipe
161162
meson compile -C build
162-
meson install -C build
163+
meson install -C build --destdir=$PWD/install
163164
164165
- name: Run tests
165166
run: |
166-
python -m pytest --import-mode=importlib pydatastructs
167+
export PYTHONPATH=$PWD/install/usr/local/lib/python${{ matrix.python-version }}/site-packages:$PYTHONPATH
168+
cd /tmp
169+
python -c "import pydatastructs; print(pydatastructs.__file__)"
170+
python -m pytest --pyargs pydatastructs -v
167171
168172
- name: Build Documentation
169173
run: |

0 commit comments

Comments
 (0)