Adds a new pre-push hook to .pre-commit-config.yaml that runs `pytest unit_tests/` before allowing any push, including `git review`. This ensures that regressions in fast-running unit tests are caught before changes are submitted for review. To activate the hook locally: pre-commit install --hook-type pre-commit pre-commit install --hook-type pre-push Change-Id: Ia2d0fe56eabf6466e27f0432ac2fb91c7b444832 Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
2.7 KiB
2.7 KiB