Skip to content

Commit 886b4de

Browse files
committed
ci: do not install Python in jobs where we are using cibuildwheel
1 parent 3da6ff1 commit 886b4de

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ jobs:
2323
submodules: true
2424
fetch-depth: 0
2525

26-
- uses: actions/setup-python@v5
27-
name: Install Python
28-
with:
29-
python-version: '3.9'
30-
3126
- name: Build wheels (manylinux)
3227
uses: pypa/cibuildwheel@v2.23.2
3328
env:
@@ -129,11 +124,6 @@ jobs:
129124
path: ~/local
130125
key: deps-cache-v2-${{ runner.os }}-${{ matrix.cmake_arch }}-llvm${{ env.LLVM_VERSION }}
131126

132-
- uses: actions/setup-python@v5
133-
name: Install Python
134-
with:
135-
python-version: '3.9'
136-
137127
- name: Install OS dependencies
138128
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
139129
run:
@@ -231,11 +221,6 @@ jobs:
231221
submodules: true
232222
fetch-depth: 0
233223

234-
- uses: actions/setup-python@v5
235-
name: Install Python
236-
with:
237-
python-version: '3.9'
238-
239224
- name: Cache installed C core
240225
id: cache-c-core
241226
uses: actions/cache@v4
@@ -267,7 +252,7 @@ jobs:
267252
CIBW_ENABLE: pypy
268253
CIBW_TEST_COMMAND: "cd /d {project} && pip install --prefer-binary \".[test]\" && python -m pytest tests"
269254
# Skip tests for Python 3.10 onwards because SciPy does not have
270-
# 32-bit wheels for Linux.
255+
# 32-bit wheels for Windows any more
271256
CIBW_TEST_SKIP: "cp310-win32 cp311-win32 cp312-win32 cp313-win32"
272257
IGRAPH_CMAKE_EXTRA_ARGS: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DVCPKG_TARGET_TRIPLET=${{ matrix.vcpkg_arch }}-windows-static-md -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake -A ${{ matrix.cmake_arch }}
273258
IGRAPH_EXTRA_LIBRARY_PATH: C:/vcpkg/installed/${{ matrix.vcpkg_arch }}-windows-static-md/lib/

0 commit comments

Comments
 (0)