python / core-workflow

Issue tracker for CPython's workflow
https://mail.python.org/mailman/listinfo/core-workflow
Apache License 2.0
95 stars 59 forks source link

Add tox for easy testing of many Python versions #523

Closed hugovk closed 8 months ago

hugovk commented 10 months ago

The tox tool makes it easy to test by taking care of the virtualenv for you and installing dependencies (defined by a tests "extra"). It also makes it easy to test multiple Python versions.

For example:

# Test Python 3.12
tox -e py312

# Test Python 3.12 and pass an argument to pytest
tox -e py312 -- --stepwise

# Test all available Python versions in serial
tox

# Test all available Python versions in parallel
tox -p auto

This PR also: