GitHub Actions: use 64-bit Python 3.6 to test on Windows

This commit is contained in:
Sajith Sasidharan 2021-04-27 15:49:25 -04:00
parent 65398a2d63
commit 73d3295a6a

View File

@ -40,19 +40,25 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
# See note below about need for using 32-bit Python 2.7 on
# Windows. The extra handling here for Python 3.6 on Windows is
# because I could not figure out the right GitHub Actions
# expression to do this in a better way.
- name: Set up Python ${{ matrix.python-version }} [Windows x64]
if: ${{ matrix.os == 'windows-latest' && matrix.python-version == '3.6' }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
# We use netifaces, which does not ship a 64-bit wheel for the
# Python 2.7 + Windows combination, but it ships a 32-bit wheel.
# Since MS has removed vcpython27 compiler downloads from their
# usual download site, building a netifaces wheel locally is not
# an option anymore. So let us just test with 32-bit Python on
# Windows.
#
# It seems that GitHub Actions' expression syntax is not
# expressive enough to select just the (32-bit Python 2.7,
# Windows) combination, so we'd also be switching to (32-bit
# Python 3.6, Windows).
- name: Set up Python ${{ matrix.python-version }} [Windows x86]
if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-latest' && matrix.python-version == '2.7' }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}