@@ -126,8 +126,7 @@ jobs:
126126
127127 - name : Install OS dependencies
128128 if : steps.cache-c-core.outputs.cache-hit != 'true' || steps.cache-c-deps.outputs.cache-hit != 'true' # Only needed when building the C core or libomp
129- run :
130- brew install ninja autoconf automake libtool
129+ run : brew install ninja autoconf automake libtool
131130
132131 - name : Install OpenMP library
133132 if : steps.cache-c-deps.outputs.cache-hit != 'true'
@@ -167,16 +166,15 @@ jobs:
167166 - uses : actions/setup-python@v5
168167 name : Install Python
169168 with :
170- python-version : ' 3.12.1'
169+ python-version : " 3.12.1"
171170
172171 - name : Install OS dependencies
173- run :
174- sudo apt install ninja-build cmake flex bison
172+ run : sudo apt install ninja-build cmake flex bison
175173
176174 - uses : mymindstorm/setup-emsdk@v14
177175 with :
178- version : ' 3.1.58'
179- actions-cache-folder : ' emsdk-cache'
176+ version : " 3.1.58"
177+ actions-cache-folder : " emsdk-cache"
180178
181179 - name : Build wheel
182180 run : |
@@ -253,7 +251,7 @@ jobs:
253251 CIBW_BEFORE_BUILD : " pip install -U setuptools && python setup.py build_c_core"
254252 CIBW_BUILD : " *-${{ matrix.wheel_arch }}"
255253 CIBW_ENABLE : pypy
256- CIBW_TEST_COMMAND : " cd /d {project} && pip install --prefer-binary \ " .[${{ matrix.test_extra }}]\ " && python -m pytest tests"
254+ CIBW_TEST_COMMAND : ' cd /d {project} && pip install --prefer-binary ".[${{ matrix.test_extra }}]" && python -m pytest tests'
257255 # Skip tests for Python 3.10 onwards because SciPy does not have
258256 # 32-bit wheels for Windows any more
259257 CIBW_TEST_SKIP : " cp310-win32 cp311-win32 cp312-win32 cp313-win32"
@@ -287,23 +285,22 @@ jobs:
287285
288286 - name : Install OS dependencies
289287 if : steps.cache-c-core.outputs.cache-hit != 'true' # Only needed when building the C core
290- run :
291- sudo apt install ninja-build cmake flex bison
288+ run : sudo apt install ninja-build cmake flex bison
292289
293290 - uses : actions/setup-python@v5
294291 name : Install Python
295292 with :
296- python-version : ' 3.9'
293+ python-version : " 3.9"
297294
298295 - name : Build sdist
299296 run : |
300297 python setup.py build_c_core
301298 python setup.py sdist
302- python setup.py install
299+ pip install .
303300
304301 - name : Test
305302 run : |
306- pip install --prefer-binary cairocffi numpy scipy pandas networkx pytest pytest-timeout
303+ pip install '.[test]'
307304 python -m pytest -v tests
308305
309306 - uses : actions/upload-artifact@v4
@@ -335,13 +332,12 @@ jobs:
335332
336333 - name : Install OS dependencies
337334 if : steps.cache-c-core.outputs.cache-hit != 'true' # Only needed when building the C core
338- run :
339- sudo apt install ninja-build cmake flex bison
335+ run : sudo apt install ninja-build cmake flex bison
340336
341337 - uses : actions/setup-python@v5
342338 name : Install Python
343339 with :
344- python-version : ' 3.12'
340+ python-version : " 3.12"
345341
346342 - name : Install test dependencies
347343 run : |
@@ -357,8 +353,7 @@ jobs:
357353 env :
358354 IGRAPH_USE_SANITIZERS : 1
359355 run : |
360- # NOTE: install calls "build" first
361- python setup.py install
356+ pip install .
362357
363358 # Only pytest, and nothing else should be run in this section due to the presence of LD_PRELOAD.
364359 # The ASan/UBSan library versions need to be updated when switching to a newer Ubuntu/GCC.
0 commit comments