Skip to content

Commit 2b26b75

Browse files
Prerak SinghPrerak Singh
authored andcommitted
bug fix
1 parent fd28eb5 commit 2b26b75

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,17 @@ jobs:
102102
run: |
103103
python -m pip install -r requirements.txt
104104
python -m pip install -r docs/requirements.txt
105-
python -m pip install meson ninja pytest
105+
python -m pip install meson-python meson ninja pytest
106106
107107
- name: Build package (Meson)
108108
env:
109109
CXXFLAGS: "-std=c++17"
110110
run: |
111-
meson setup build --wipe
112-
meson compile -C build
113-
meson install -C build --destdir=$PWD/install
111+
python -m pip install . -v --no-build-isolation
114112
115113
- name: Run tests
116114
run: |
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__)"
115+
cd $HOME
120116
python -m pytest --pyargs pydatastructs -v
121117
122118
- name: Build Documentation
@@ -151,22 +147,18 @@ jobs:
151147
run: |
152148
python -m pip install -r requirements.txt
153149
python -m pip install -r docs/requirements.txt
154-
python -m pip install meson ninja pytest
150+
python -m pip install meson-python meson ninja pytest
155151
156152
- name: Build package (Meson)
157153
env:
158154
MACOSX_DEPLOYMENT_TARGET: 11.0
159155
CXXFLAGS: "-std=c++17"
160156
run: |
161-
meson setup build --wipe
162-
meson compile -C build
163-
meson install -C build --destdir=$PWD/install
157+
python -m pip install . -v --no-build-isolation
164158
165159
- name: Run tests
166160
run: |
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__)"
161+
cd $HOME
170162
python -m pytest --pyargs pydatastructs -v
171163
172164
- name: Build Documentation

0 commit comments

Comments
 (0)