From 51a24481f5741a68b54c25e66abb6fdf0b867a40 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Mon, 3 Feb 2025 12:49:57 -0800 Subject: [PATCH] Add tox configuration Signed-off-by: Alex Forencich --- tox.ini | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..f0df9a2 --- /dev/null +++ b/tox.ini @@ -0,0 +1,33 @@ +# tox configuration +[tox] +envlist = py3 +skipsdist = True +minversion = 3.2.0 +requires = virtualenv >= 16.1 + +[gh-actions] +python = + 3.13: py3 + +[testenv] +deps = + pytest == 8.3.4 + pytest-xdist == 3.6.1 + pytest-split == 0.10.0 + cocotb == 1.9.2 + cocotb-bus == 0.2.1 + cocotb-test == 0.2.6 + cocotbext-axi == 0.1.24 + cocotbext-eth == 0.1.22 + cocotbext-pcie == 0.2.14 + cocotbext-uart == 0.1.2 + +commands = + pytest {posargs:-n auto --verbose} + +# pytest configuration +[pytest] +testpaths = + tb +addopts = + --import-mode importlib