File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments