Run tests for multiple python versions #18385
Unanswered
iaptsiauri
asked this question in
Q&A
Replies: 1 comment 7 replies
-
The way you can do this with pants is to parametrize the tests over the desired set of interpreter constraints you want to use. python_test(
name="tests",
source="tests.py",
interpreter_constraints=parametrize(py2=["==2.7.*"], py3=[">=3.6"]),
) https://www.pantsbuild.org/docs/python-interpreter-compatibility#using-multiple-python-versions-in-the-same-project |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, we are using pants build system to manage python monorepo which consists of multiple different packages which we provide as a standalone dependency or bundled in a framework. We want to run the tests for multiple diffrenet python versions. Doing this in tox is quite straigtforward by eding pythong version to envlist. Unfortunatelly I wasn't able to find the same option with pants test goal. I wonder if it is possible or some other tweaking should be done
Beta Was this translation helpful? Give feedback.
All reactions