@@ -108,12 +108,16 @@ jobs:
108108 env :
109109 CXXFLAGS : " -std=c++17"
110110 run : |
111- python -m pip install --no-build-isolation -e . -v
111+ python -m mesonbuild.mesonmain setup builddir
112+ python -m mesonbuild.mesonmain compile -C builddir
112113
113114 - name : Run tests
114115 run : |
115- python -m pytest pydatastructs/ -v --import-mode=importlib --ignore-glob="**/benchmarks/**" --ignore=pydatastructs/linear_data_structures/tests/benchmarks/
116-
116+ BUILDDIR=$(find builddir -type d -name "*.cpython-*" | head -1)
117+ export PYTHONPATH="${BUILDDIR}:${PWD}:${PYTHONPATH}"
118+ echo "PYTHONPATH: $PYTHONPATH"
119+ python -c "import pydatastructs; print('Loaded from:', pydatastructs.__file__)"
120+ python -m pytest pydatastructs/ -v --ignore-glob="**/benchmarks/**"
117121 - name : Build Documentation
118122 run : |
119123 sphinx-build -b html docs/source/ docs/build/html
@@ -153,11 +157,15 @@ jobs:
153157 MACOSX_DEPLOYMENT_TARGET : 11.0
154158 CXXFLAGS : " -std=c++17"
155159 run : |
156- python -m pip install --no-build-isolation -e . -v
157-
160+ python -m mesonbuild.mesonmain setup builddir
161+ python -m mesonbuild.mesonmain compile -C builddir
158162 - name : Run tests
159163 run : |
160- python -m pytest pydatastructs/ -v --import-mode=importlib --ignore-glob="**/benchmarks/**" --ignore=pydatastructs/linear_data_structures/tests/benchmarks/
164+ BUILDDIR=$(find builddir -type d -name "*.cpython-*" | head -1)
165+ export PYTHONPATH="${BUILDDIR}:${PWD}:${PYTHONPATH}"
166+ echo "PYTHONPATH: $PYTHONPATH"
167+ python -c "import pydatastructs; print('Loaded from:', pydatastructs.__file__)"
168+ python -m pytest pydatastructs/ -v --ignore-glob="**/benchmarks/**"
161169
162170 - name : Build Documentation
163171 run : |
0 commit comments