Testing multiple Ubuntu releases for multiple Python versions

Hello community,

I am trying to test for different Python versions on different Ubuntu releases:

language: python

matrix:
  include:
  - dist: precise
    os: linux
    language: python
    python: "2.7"
  - dist: precise
    os: linux
    language: python
    python: "3.6"

  - dist: bionic
    os: linux
    language: python
    python: "2.7"
  - dist: bionic
    os: linux
    language: python
    python: "3.6"

  - dist: focal
    os: linux
    language: python
    python: "2.7"
  - dist: focal
    os: linux
    language: python
    python: "3.6"

I am not sure here. Can’t this be simplified?
Any hint is appreciated.

Kind regards;
Stephan

No. Since dist: is not an axis.

The matrix expansion logic in which this can be changed is allegedly in GitHub - travis-ci/travis-yml: Travis CI build config processing.

As an aside: Do you really need to test in multiple Ubuntu versions? Unless you are testing an extension linked against distro-provided libraries – which is a questionable thing to do, Python packages distributed via PyPI should rather be built against a manylinux standard image – only the Python version matters.

3 posts were split to a new topic: Build PyPI wheels