@@ -126,8 +126,7 @@ jobs:
126
126
127
127
- name : Install OS dependencies
128
128
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
131
130
132
131
- name : Install OpenMP library
133
132
if : steps.cache-c-deps.outputs.cache-hit != 'true'
@@ -167,16 +166,15 @@ jobs:
167
166
- uses : actions/setup-python@v5
168
167
name : Install Python
169
168
with :
170
- python-version : ' 3.12.1'
169
+ python-version : " 3.12.1"
171
170
172
171
- 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
175
173
176
174
- uses : mymindstorm/setup-emsdk@v14
177
175
with :
178
- version : ' 3.1.58'
179
- actions-cache-folder : ' emsdk-cache'
176
+ version : " 3.1.58"
177
+ actions-cache-folder : " emsdk-cache"
180
178
181
179
- name : Build wheel
182
180
run : |
@@ -253,7 +251,7 @@ jobs:
253
251
CIBW_BEFORE_BUILD : " pip install -U setuptools && python setup.py build_c_core"
254
252
CIBW_BUILD : " *-${{ matrix.wheel_arch }}"
255
253
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'
257
255
# Skip tests for Python 3.10 onwards because SciPy does not have
258
256
# 32-bit wheels for Windows any more
259
257
CIBW_TEST_SKIP : " cp310-win32 cp311-win32 cp312-win32 cp313-win32"
@@ -287,23 +285,22 @@ jobs:
287
285
288
286
- name : Install OS dependencies
289
287
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
292
289
293
290
- uses : actions/setup-python@v5
294
291
name : Install Python
295
292
with :
296
- python-version : ' 3.9'
293
+ python-version : " 3.9"
297
294
298
295
- name : Build sdist
299
296
run : |
300
297
python setup.py build_c_core
301
298
python setup.py sdist
302
- python setup.py install
299
+ pip install .
303
300
304
301
- name : Test
305
302
run : |
306
- pip install --prefer-binary cairocffi numpy scipy pandas networkx pytest pytest-timeout
303
+ pip install '.[test]'
307
304
python -m pytest -v tests
308
305
309
306
- uses : actions/upload-artifact@v4
@@ -335,13 +332,12 @@ jobs:
335
332
336
333
- name : Install OS dependencies
337
334
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
340
336
341
337
- uses : actions/setup-python@v5
342
338
name : Install Python
343
339
with :
344
- python-version : ' 3.12'
340
+ python-version : " 3.12"
345
341
346
342
- name : Install test dependencies
347
343
run : |
@@ -357,8 +353,7 @@ jobs:
357
353
env :
358
354
IGRAPH_USE_SANITIZERS : 1
359
355
run : |
360
- # NOTE: install calls "build" first
361
- python setup.py install
356
+ pip install .
362
357
363
358
# Only pytest, and nothing else should be run in this section due to the presence of LD_PRELOAD.
364
359
# The ASan/UBSan library versions need to be updated when switching to a newer Ubuntu/GCC.
0 commit comments