Question for the CI build script - execution order

I noticed that when running the GitHub Action build-test.yaml the order could be improved a bit:

The script is

  1. checking linting rules on the source code file
  2. compiling and testing the microcontroller firmware for a large number of architectures
  3. running the python tests

IMHO it would be more efficient to run the python tests first and then the microcontroller compilation and tests as the later take a considerable amount of computation and time but it is less likely that there is an error only in the xth microcontroller architecture compared to errors in the python tests (especially regarding python 2.7 compatibility as I assume most of us are developing under 3.X).

Would it make sense to flip the order in the script? Or are the firmware binaries needed for the python tests?

Firmware dictionaries are needed for tests, yes.

-Timofey

1 Like