From 4f11e934aca7beb29a752f414669eac80f5b504d Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Thu, 30 Mar 2023 12:44:51 -0400 Subject: Added a tox.ini that runs the unit tests against different versions of Python. --- tox.ini | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..50a12cb --- /dev/null +++ b/tox.ini @@ -0,0 +1,27 @@ +[tox] +env_list = + py{36, 37, 38, 39, 310, 311} +minversion = 4.4.8 + +[testenv] +description = run the tests with all dependencies installed +package = wheel +wheel_build_env = .pkg +deps = + lxml + html5lib + soupsieve>=1.2 + pytest>=6 +commands = + pytest {tty:--color=yes} {posargs} + +[testenv:oldpy] +description = run the tests on a very old version of Python without any dependencies installed +basepython = py36 +package = wheel +wheel_build_env = .pkg +deps = + pytest>=6 +commands = + pytest {tty:--color=yes} {posargs} + -- cgit v1.2.3