digitalsputnik / ApolloFirmware

Micropython software for the Apollo lamps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit Testing Python in GitHub Actions

MJoosep opened this issue · comments

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

  • Implement GitHub Unit Tests

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

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

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