CI: python 2.7 tests needs to run in a container (#5174)

Python 2.7 is not supported anymore in github actions runners.

See:
https://github.com/actions/setup-python/issues/672
This commit is contained in:
Daniel Marjamäki 2023-06-19 20:53:36 +02:00 committed by GitHub
parent 38b2c5ee3f
commit 4f3cc168d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ jobs:
needs: build
# 'ubuntu-22.04' removes Python 2.7, 3.5 and 3.6 so keep the previous LTS version
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10', '3.11']