MycroftAI / adapt

Adapt Intent Parser
Apache License 2.0
710 stars 154 forks source link

Run unit tests in Github Actions #125

Closed krisgesling closed 3 years ago

krisgesling commented 3 years ago

Description: Adds automated testing for any new PR via Github Actions.

Intentionally commented out flake8 checks at the moment as these will fail on the current codebase.

How to test: See automated checks below.

CLA

forslund commented 3 years ago

Discussing abit with @krisgesling yesterday and we've now updated to use test-requirements.txt to install pytest and flake8.

The run_tests.py script is removed for the time being since it's not used anymore. testing instructions have been added to the readme for now. A new script should probably be created to allow running the flake8 and pytest...

forslund commented 3 years ago

Since the flake command-line is non-trivial I pulled it out into a run_tests.sh script as you suggested @clusterfudge, readme has been updated with this information.

forslund commented 3 years ago

Will write up an issue during the day.