@@ -18,7 +18,7 @@ concurrency:
1818 cancel-in-progress : ${{ github.event_name == 'pull_request' }}
1919
2020jobs :
21- ubuntu_build :
21+ build_test :
2222 name : Build and test ${{ matrix.name }}
2323 runs-on : ${{ matrix.os || 'ubuntu-latest' }}
2424 defaults :
@@ -188,13 +188,6 @@ jobs:
188188 submodules : false
189189 fetch-depth : 1
190190
191- # - name: Checkout VC9 for Python
192- # if: ${{ runner.os == 'Windows' && matrix.build_system == 'python' && matrix.python_version == '2.7' }}
193- # uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
194- # with:
195- # repository: reider-roque/sulley-win-installer
196- # path: third_party/VCForPython27
197-
198191 - name : Configure / Build / Test with CMake
199192 if : ${{ matrix.build_system == 'cmake' }}
200193 run : |
@@ -294,17 +287,36 @@ jobs:
294287 with :
295288 python-version : ${{ matrix.python_version }}
296289
297- # TODO: investigate, why msiexec hangs
298- # - name: Install VC9 for Python
299- # if: ${{ runner.os == 'Windows' && matrix.build_system == 'python' && matrix.python_version == '2.7' }}
300- # run: |
301- # echo "070474db76a2e625513a5835df4595df9324d820f9cc97eab2a596dcbc2f5cbf third_party/VCForPython27/VCForPython27.msi" | sha256sum --check --status
302- # msiexec ALLUSERS=1 /qn /norestart /i third_party/VCForPython27/VCForPython27.msi /l*v ${RUNNER_TEMP}/msiexec.log
303- # cat ${RUNNER_TEMP}/msiexec.log
304-
305290 - name : Build / Test with Python
306291 if : ${{ matrix.build_system == 'python' }}
307292 run : |
308293 python -VV
309294 python -c "import sys; sys.exit('Invalid python version') if '.'.join(map(str,sys.version_info[0:2])) != '${{ matrix.python_version }}' else True"
310295 python setup.py ${{ matrix.py_setuptools_cmd || 'test'}}
296+
297+ build_test_py27 :
298+ name : Build and test with Python 2.7
299+ runs-on : ubuntu-latest
300+ container :
301+ image : ubuntu:22.04
302+ steps :
303+
304+ - name : Install deps
305+ run : |
306+ apt update
307+ apt install -y curl gcc python2.7 python2.7-dev
308+ curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
309+ python2.7 get-pip.py
310+ python2.7 -m pip install distutils-pytest==0.1
311+
312+ - name : Checkout the source
313+ uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
314+ with :
315+ submodules : false
316+ fetch-depth : 1
317+
318+ - name : Build / Test
319+ run : |
320+ python2.7 -VV
321+ python2.7 -c "import sys; sys.exit('Invalid python version') if '.'.join(map(str,sys.version_info[0:2])) != '2.7' else True"
322+ python2.7 setup.py test
0 commit comments