Use ubuntu-latest for the supported Python versions (#442)

Use ubuntu-22.04 only for Python 3.7-3.8
by including them separately into the matrix.
This commit is contained in:
KV 2025-01-16 17:25:48 +01:00
parent e8c482e94e
commit e4fe099f8c

View File

@ -7,8 +7,16 @@ jobs:
strategy:
max-parallel: 6
matrix:
# ubuntu-22.04 supports Python 3.7-3.12
# ubuntu-24.04 (currently latest & preferred) supports Python 3.9-3.12
# More details: https://github.com/actions/runner-images/issues/10636
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: ubuntu-22.04
python-version: "3.7"
- os: ubuntu-22.04
python-version: "3.8"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4