-
Notifications
You must be signed in to change notification settings - Fork 6
Automatic Tests
Jennings Zhang edited this page Feb 3, 2021
·
2 revisions
Automated tests are a chore, however they are vital to software engineering.
This is not a guide on how to properly test your Python code, that is too big of a topic. Rather, here are three quick tips:
Tests run automatically, and by default you get email notifications for failing tests.
Taking it one step further, you can add needs: [test]
under publish:
to enforce passing tests as a precondition for automatic building and publishing of your ChRIS plugin.
github/workflows/ci.yml
@@ -34,6 +34,7 @@ jobs:
publish:
if: github.event_name == 'push' || github.event_name == 'release'
runs-on: ubuntu-20.04
+ needs: [ test ]