Skip to content

Reduce default set of testing environments - #163

Merged
diazona merged 1 commit into
pytest-dev:mainfrom
TOMASEZARATE:reduce-test-envs
Nov 30, 2026
Merged

diazona merged 1 commit into
pytest-dev:mainfrom
TOMASEZARATE:reduce-test-envs

Conversation

@TOMASEZARATE

Copy link
Copy Markdown
Contributor

Closes #162

This trims the default tox envlist and the GitHub Actions test matrix, following the list in the issue:

  • Oldest supported: CPython 3.7 and PyPy 3.7 (still with pytest 4.6 and Ubuntu 22.04)
  • Oldest non-EOL: CPython 3.10 and PyPy 3.10 (pytest 6.2.4)
  • Latest: CPython 3.15 and PyPy 3.12 (the newest PyPy release)
  • The smtp extra runs once, on 3.15, instead of on every version
  • The pytest lower bounds in tox.ini are unchanged, and CI still covers each of them (4.6 on 3.7, 6.2.4 on 3.10, 7.3.2 on 3.15)

That takes CI from 15 build jobs to 6. Every other environment can still be run explicitly with tox -e, e.g. tox -e py38-smtp. The Ubuntu 24.04 pins for 3.8 and 3.9 went away along with those jobs.

I used an AI assistant (Cursor Agent with Grok 4.7) while writing this change. I reviewed the code myself, and the commit has an Assisted-by trailer.

Assisted-by: Cursor Agent with Grok 4.7
@diazona

diazona commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Thanks! I gave this a very quick glance and it seems good, but I'd like to wait until I have time to give it a proper review - probably tomorrow - before merging.

@diazona

diazona commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Sorry about the wait, I got unexpectedly busy hosting for the Thanksgiving holiday.

Anyway, as mentioned before I think this is mostly good; the one thing I'd like to change is to keep the ability to test the full set of versions when we do a release. It doesn't have to be part of this PR though. It's the same idea used in my other project https://github.com/diazona/setuptools-pyproject-migration/, whose CI config got a lot more thought from me than this one did: we test only selected versions in pre-merge and post-merge, but prior to releasing to PyPI we do comprehensive testing just to make sure everything works.

I'm fine either merging this PR as-is and making those changes in a separate followup PR, or including the changes to do full release testing in this PR. What would you prefer?

@TOMASEZARATE

Copy link
Copy Markdown
Contributor Author

No worries, hope the holiday was good! I'd prefer merging this as-is, and I've opened the release testing changes as a follow-up in #164, following the setuptools-pyproject-migration approach. Happy to adjust anything there.

@diazona
diazona merged commit f4ba33e into pytest-dev:main Nov 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce default set of testing environments

2 participants