Use older Ubuntu version for Python 3.6
setup-python doesn't support Python 3.6 with Ubuntu 22.04, which
ubuntu-latest now points to.
@@ -18,12 +18,16 @@ jobs:
python_test_job:
timeout-minutes: 15
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.version.os }}
name: 'Pure Python tests'
strategy:
fail-fast: false
matrix:
- python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
+ version: [ {python: "3.6", os: "ubuntu-20.04"}
+ {python: "3.7", os: "ubuntu-latest"}
+ {python: "3.8", os: "ubuntu-latest"}
+ {python: "3.9", os: "ubuntu-latest"}
+ {python: "3.10", os: "ubuntu-latest"} ]
steps:
- uses: actions/checkout@v2
@@ -33,10 +37,10 @@ jobs:
# https://github.com/actions/virtual-environments/issues/5237
(sudo apt-get -y update || true) && sudo apt-get install graphviz
- - name: Set up Python ${{ matrix.python-version }}
+ - name: Set up Python ${{ matrix.version.python }}
uses: actions/setup-python@v2
with:
- python-version: ${{ matrix.python-version }}
+ python-version: ${{ matrix.version.python }}
- run: |
pip install $GITHUB_WORKSPACE/.[test]
