summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-03-30 12:44:51 -0400
committerLeonard Richardson <leonardr@segfault.org>2023-03-30 12:44:51 -0400
commit4f11e934aca7beb29a752f414669eac80f5b504d (patch)
tree91c43dc1101c2ce8eb5d80bf10d5a5eb385078c1
parente2d780c76d0748754c9c3935ee5e6e5493bc3cd4 (diff)
Added a tox.ini that runs the unit tests against different versions of Python.
-rw-r--r--tox.ini27
1 files changed, 27 insertions, 0 deletions
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}
+