Description
I recently created the github action install-micropython, making it much simpler to obtain a micropython executable in Github Actions. I can volunteer to add a workflow to run unit tests to this repo, but would like to discuss it first. There are a few issues that make the ideal implementation non-obvious.
-
Would we simply iterate over all folders in
python-stdlib
(and other) and runmicropython -m unittest
? This has a few issues described below. An alternative is to setup an explicit job/step for each package. Advantage: much greater clarity in the github action dashboard. Disadvantage: a lot more manual configuration. -
Some modules are not intended to be standalone, for example (
python-stdlib/os-path
) -
Inconsistent folder structure: some packages have tests in a
tests/
folder, others simply have atest_xyz.py
file next to the primary library file. -
As a provisioning step, should
unittest
andunittest-discover
be copied into their own directory first, then that path added toMICROPYTHONPATH
?