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 committed by Daniel Rojas
parent abbedc4e24
commit 7d8999b45e

View File

@ -7,8 +7,16 @@ jobs:
strategy: strategy:
max-parallel: 6 max-parallel: 6
matrix: 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] 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 }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4