Skip to content

Commit 25e3f60

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

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ jobs:
108108
env:
109109
CXXFLAGS: "-std=c++17"
110110
run: |
111-
meson setup build --prefix=$PWD/install --wipe
111+
PREFIX=$(python -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
112+
meson setup build --prefix=$PREFIX --wipe
112113
meson compile -C build
113114
meson install -C build
114115
115116
- name: Run tests
116117
run: |
117-
export PYTHONPATH=$PWD/install/lib/python${{ matrix.python-version }}/site-packages:$PWD:$PYTHONPATH
118-
pytest --import-mode=importlib
118+
python -m pytest --import-mode=importlib pydatastructs
119119
120120
- name: Build Documentation
121121
run: |
@@ -156,14 +156,14 @@ jobs:
156156
MACOSX_DEPLOYMENT_TARGET: 11.0
157157
CXXFLAGS: "-std=c++17"
158158
run: |
159-
meson setup build --prefix=$PWD/install --wipe
159+
PREFIX=$(python -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
160+
meson setup build --prefix=$PREFIX --wipe
160161
meson compile -C build
161162
meson install -C build
162163
163164
- name: Run tests
164165
run: |
165-
export PYTHONPATH=$PWD/install/lib/python${{ matrix.python-version }}/site-packages:$PWD:$PYTHONPATH
166-
pytest --import-mode=importlib
166+
python -m pytest --import-mode=importlib pydatastructs
167167
168168
- name: Build Documentation
169169
run: |

0 commit comments

Comments
 (0)