summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
Diffstat (limited to 'check')
-rwxr-xr-xcheck15
1 files changed, 15 insertions, 0 deletions
diff --git a/check b/check
index 652705c..a876e54 100755
--- a/check
+++ b/check
@@ -34,6 +34,21 @@ docgen() {
cargo run $quiet --bin sp-docgen -- "$1" --output "$2"
}
+# Run unit tests for the Python template.
+(set -eu
+ cd templates/python
+ for x in *_tests.py
+ do
+ $hideok echo "Unit tests: $x"
+ $hideok python3 "$x"
+ $hideok echo
+ done)
+
+if command -v flake8 > /dev/null
+then
+ $hideok flake8 templates/python --exclude=template.py
+fi
+
$hideok cargo build --all-targets
if cargo --list | awk '{ print $1 }' | grep 'clippy$' > /dev/null
then