digitalsputnik / ApolloFirmware

Micropython software for the Apollo lamps
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Unit Testing Python in GitHub Actions #22

Open MJoosep opened 2 years ago

MJoosep commented 2 years ago

Implement first automatic unit test in GitHub as an example to test python scripts. Test should run on push and give automatic results.

MJoosep commented 2 years ago

Stock Conda (conda is used to install pytest, which is the tool to test python scripts) setup script in GitHub is broken, gives error on build: SpecNotFound: Invalid name, try the format: user/package.

For more information look under Actions tab and see where the setup failed.

Looking for a fix/alternative

MJoosep commented 2 years ago

Was able to initialize setup using pip instead of Conda, now build fails because of Apollo Firmware syntax errors during linting

MJoosep commented 2 years ago

Created example unit testing framework with an example for PySaver. Can be viewed under unit-testing branch