Skip to content

Commit

Permalink
update build-wheels.yml to test win py310 wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenkov committed Aug 24, 2023
1 parent ffc37b2 commit 52b77d1
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

build_wheels:
needs: linters
name: Build wheels on ${{ matrix.os }}
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
path: wheelhouse/*.whl

test:
name: Test wheel for ${{ matrix.os }} Python ${{ matrix.python }}
name: Test ${{ matrix.os }} Py${{ matrix.python }}
needs: build_wheels
strategy:
fail-fast: false
Expand All @@ -74,13 +74,7 @@ jobs:
- {python: '3.8', os: windows-2019}
- {python: '3.9', os: windows-2019}

#
# We know that the Windows Py3.10 wheels are broken. Don't test them,
# because it will fail the entire workflow.
#
# https://github.com/RaRe-Technologies/gensim/issues/3489
#
# - {python: '3.10', os: windows-2019}
- {python: '3.10', os: windows-2019}
- {python: '3.11', os: windows-2019}

runs-on: ${{ matrix.os }}
Expand All @@ -101,6 +95,19 @@ jobs:
- name: Install oldest-supported-numpy
run: python -m pip install oldest-supported-numpy

#
# We know that the Windows Py3.10 wheels are broken: they won't work
# with older numpy versions. We still want to test the wheel somehow,
# so we use a newer numpy version.
#
# https://github.com/RaRe-Technologies/gensim/issues/3489
#
- name: Install newest numpy
if: {{ matrix.os }} == "windows-2019" && {{ matrix.python }} == "3.10"
run: |
python -m pip uninstall oldest-supported-numpy
python -m pip install numpy
#
# Avoid checking out the entire gensim repo to get just one file
#
Expand Down

0 comments on commit 52b77d1

Please sign in to comment.