github/workflows: Use ubuntu-20.04 when python2 is required.

Python 2 is no longer included in the latest Ubuntu 22.04.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-11-23 10:05:54 +11:00
parent b705732d5f
commit ecb46f93e0
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04 # use 20.04 to get python2
steps:
- uses: actions/checkout@v3
- name: Install packages

View File

@ -98,7 +98,7 @@ jobs:
run: tests/run-tests.py --print-failures
nanbox:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04 # use 20.04 to get python2
steps:
- uses: actions/checkout@v3
- name: Install packages