Skip to content

Commit

Permalink
Refine test matrices
Browse files Browse the repository at this point in the history
ubuntu-latest was switched over to ubuntu-22.04, because 3.6 is long
EOLd actions/setup-python#544 opted not to build
that (actions/setup-python#544 (comment)),
therefore extract a sub-matrix to run 3.6 on 20.04.

For now, 2.7 is still available on
ubuntu-latest (actions/setup-python#543) so that should be fine yet.
  • Loading branch information
masklinn committed Apr 5, 2023
1 parent 546ff43 commit 6971d33
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@ jobs:
run: black --check --diff --color --quiet .

compile:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-alpha - 3.11", "pypy-3.8"]
pyyaml-version: ["5.1.*", "5.4.*", "6.0.*", "6.*"]
include:
- python-version: 3.6
os: ubuntu-20.04
exclude:
- python-version: 2.7
pyyaml-version: 6.0.*
- python-version: 2.7
pyyaml-version: 6.*
runs-on: ${{ matrix.os || "ubuntu-latest" }}

steps:
- name: Checkout working copy
Expand All @@ -60,11 +63,14 @@ jobs:
test -e ua_parser/_regexes.py -a ! -e .eggs
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-alpha - 3.11", "pypy-3.8"]
include:
- python-version: 3.6
os: ubuntu-20.04
runs-on: ${{ matrix.os || "ubuntu-latest" }}

steps:
- name: Checkout working copy
Expand Down

0 comments on commit 6971d33

Please sign in to comment.