greatscottgadgets / luna

Amaranth HDL framework for monitoring, hacking, and developing USB devices
https://greatscottgadgets.com/cynthion/
BSD 3-Clause "New" or "Revised" License
991 stars 171 forks source link

Reorganise tests/CI #245

Closed miek closed 6 months ago

miek commented 7 months ago

This moves all of the tests out to the top level so that unittest auto-discovery can work, and so we don't unnecessarily distribute them as part of the package. It fixes a test that was broken but wasn't previously being run. It also drops tox in favour of pdm for the virtual environment setup, and sets up testing across different python versions.

Tests can now be run with python -m unittest (or python -m unittest discover -t . -s tests to be a bit more strict), or pdm run test.