GitHub Actions: test with 32-bit Python 2.7 on Windows

This commit is contained in:
Sajith Sasidharan 2021-04-26 12:00:11 -04:00
parent b707a6ca7b
commit 196ce5103d

View File

@ -35,10 +35,22 @@ jobs:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
if: matrix.os != 'windows-latest' && matrix.python-version != '2.7'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
# We use netifaces, which does not ship a 64-bit wheel for
# Windows, but it ships a 32-bit wheel. Since MS has pulled
# vcpython27 compiler, building a netifaces wheel is not an
# option anymore, so let us test on 32-bit Windows.
- name: Set up Python ${{ matrix.python-version }} [Windows x86]
if: matrix.os == 'windows-latest' && matrix.python-version == '2.7'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
# To use pip caching with GitHub Actions in an OS-independent
# manner, we need `pip cache dir` command, which became
# available since pip v20.1+. At the time of writing this,
@ -175,10 +187,19 @@ jobs:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
if: matrix.os != 'windows-latest' && matrix.python-version != '2.7'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
# See this step under coverage job.
- name: Set up Python ${{ matrix.python-version }} [Windows x86]
if: matrix.os == 'windows-latest' && matrix.python-version == '2.7'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Get pip cache directory
id: pip-cache
run: |
@ -230,10 +251,19 @@ jobs:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
if: matrix.os != 'windows-latest' && matrix.python-version != '2.7'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
# See this step under coverage job.
- name: Set up Python ${{ matrix.python-version }} [Windows x86]
if: matrix.os == 'windows-latest' && matrix.python-version == '2.7'
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Get pip cache directory
id: pip-cache
run: |