pypa / get-pip

Helper scripts to install pip, in a Python installation that doesn't have it.
https://bootstrap.pypa.io/pip/
MIT License
740 stars 293 forks source link

Python versions being tested by CI don't match noxfile #170

Closed pfmoore closed 2 years ago

pfmoore commented 2 years ago

The noxfile has tests for Python versions

python=["2.6", "2.7", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9"]

The Github Actions CI installs 2.7 and 3.5-3.9. As a result, nox -s check fails because 2.6, 3.2, 3.3 and 3.4 are not installed.

We should make nox and CI match.

Also, we should add 3.10, and maybe 3.11.

pradyunsg commented 2 years ago

Python versions being tested by CI don't match noxfile

They don't need to -- they need to be a subset, and unsupported interpreters are the ones that we don't test. Not testing 3.10 and 3.11 is an oversight though, and we should add those in. :)

pfmoore commented 2 years ago

I ran nox -s check locally and it said:

❯ nox -s check
nox > Running session check-2.6
nox > Missing interpreters will error by default on CI systems.
nox > Session check-2.6 skipped: Python interpreter 2.6 not found.

See here where it mentions that the CI behaviour is different.

pradyunsg commented 2 years ago

See #172, where more context was added around this (specifically, nox has changed default behaviours and you need to pass --no-error-on-missing-interpreters in CI).