Skip to content

Commit

Permalink
Use ubuntu-latest when possible
Browse files Browse the repository at this point in the history
Use ubuntu-22.04 only for Python 3.7-3.8
by including them separately into the matrix.
  • Loading branch information
kvid committed Jan 16, 2025
1 parent fc40b80 commit 670557b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ jobs:
# ubuntu-22.04 is required to support Python 3.7-3.12
# ubuntu-24.04 is better when Python 3.9-3.12 is enough
# More details: https://github.com/actions/runner-images/issues/10636
os: [ubuntu-22.04]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest]
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
Expand Down

0 comments on commit 670557b

Please sign in to comment.