@@ -29,14 +29,12 @@ jobs:
2929 strategy :
3030 fail-fast : false
3131 matrix :
32- python-version : ["2.7", " 3.6", "3.7", "3.8", "3.9", "3.10"]
32+ python-version : ["3.6", "3.7", "3.8", "3.9", "3.10"]
3333 os : [macos-11, windows-latest, ubuntu-latest]
3434 experimental : [false]
3535 nox-session : ['']
3636 exclude :
37- # GitHub Actions dropped support for Python 2.7 and 3.7 in Ubuntu 22.04
38- - python-version : " 2.7"
39- os : ubuntu-latest
37+ # actions/setup-python dropped support for 3.6 in Ubuntu 22.04
4038 - python-version : " 3.6"
4139 os : ubuntu-latest
4240 # Python 3.7 does not fully support OpenSSL 3, the default on Ubuntu 22.04
4543 os : ubuntu-latest
4644 include :
4745 - python-version : " 2.7"
48- os : ubuntu-20.04
46+ os : ubuntu-latest
4947 experimental : false
5048 nox-session : ' '
5149 - python-version : " 3.6"
@@ -89,10 +87,20 @@ jobs:
8987 uses : actions/checkout@v2
9088
9189 - name : Set Up Python - ${{ matrix.python-version }}
90+ if : matrix.python-version != '2.7'
9291 uses : actions/setup-python@v4
9392 with :
9493 python-version : ${{ matrix.python-version }}
9594
95+ # Unfortunately, actions/setup-python does not support CPython 2.7.
96+ - name : Set Up Python - 2.7
97+ if : matrix.python-version == '2.7'
98+ run : |
99+ sudo apt update
100+ sudo apt install python2.7-dev python-is-python3
101+ curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
102+ sudo python2.7 get-pip.py
103+
96104 - name : Set Up Python 3 to run nox
97105 if : matrix.python-version == '2.7' || matrix.python-version == 'pypy2.7'
98106 uses : actions/setup-python@v4
0 commit comments