Add tox and pytest configuration

This commit is contained in:
Alex Forencich 2021-04-03 16:36:46 -07:00
parent 9d99ec0096
commit 17ba806687

29
tox.ini Normal file
View File

@ -0,0 +1,29 @@
# tox configuration
[tox]
envlist = py39
skipsdist = True
[gh-actions]
python =
3.9: py39
[testenv]
deps =
pytest
pytest-xdist
pytest-split
cocotb
cocotb-test
cocotbext-axi
jinja2
commands =
pytest -n auto {posargs}
# pytest configuration
[pytest]
testpaths =
tb
addopts =
--ignore-glob=tb/test_*.py
--import-mode importlib