Skip to content

Commit

Permalink
CI: run Python 2.7 tests in a container.
Browse files Browse the repository at this point in the history
Temporary work-around for:

    ##[error]The version '2.7' with architecture 'x64' was not found for Ubuntu 20.04.
  • Loading branch information
jwilk committed Jun 22, 2023
1 parent 74401df commit f50e90c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ 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
- name: set up Python ${{matrix.python}}
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
Expand All @@ -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'}}
Expand Down

0 comments on commit f50e90c

Please sign in to comment.