@@ -108,16 +108,13 @@ jobs:
108108 env :
109109 CXXFLAGS : " -std=c++17"
110110 run : |
111- python -m mesonbuild.mesonmain setup builddir
112- python -m mesonbuild.mesonmain compile -C builddir
111+ spin build -v
112+ python -m pip install . --no-deps --no-build-isolation -v
113113
114114 - name : Run tests
115115 run : |
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/**"
116+ cd $HOME
117+ python -m pytest --pyargs pydatastructs -v --ignore-glob="**/benchmarks/**"
121118 - name : Build Documentation
122119 run : |
123120 sphinx-build -b html docs/source/ docs/build/html
@@ -157,15 +154,12 @@ jobs:
157154 MACOSX_DEPLOYMENT_TARGET : 11.0
158155 CXXFLAGS : " -std=c++17"
159156 run : |
160- python -m mesonbuild.mesonmain setup builddir
161- python -m mesonbuild.mesonmain compile -C builddir
157+ spin build -v
158+ python -m pip install . --no-deps --no-build-isolation -v
162159 - name : Run tests
163160 run : |
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/**"
161+ cd $HOME
162+ python -m pytest --pyargs pydatastructs -v --ignore-glob="**/benchmarks/**"
169163
170164 - name : Build Documentation
171165 run : |
0 commit comments