From f50e90c9ce9233f7b011dd11686a34e6641fb64f Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Thu, 22 Jun 2023 13:15:17 +0200 Subject: [PATCH] CI: run Python 2.7 tests in a container. Temporary work-around for: ##[error]The version '2.7' with architecture 'x64' was not found for Ubuntu 20.04. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e48df47..8e98002 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: os: ubuntu-22.04 - python: '3.12-dev' os: ubuntu-22.04 + container: ${{ (startsWith(matrix.python, '2.') && 'python:2.7-buster') || null }} runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v3 @@ -36,6 +37,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{matrix.python}} + if: ${{ ! startsWith(matrix.python, '2.') }} - name: install setuptools (if distutils is missing) run: | if ! [ -d ${{env.pythonLocation}}/lib/python*/distutils/ ]; then @@ -52,6 +54,7 @@ jobs: wget https://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz -O deps/afl.tar.gz tar -xvzf deps/afl.tar.gz -C deps/ make -C deps/afl-*/ install PREFIX=~/.local + container: null - name: install Cython run: python -m pip install --verbose ${{matrix.cython || 'cython'}}