print sloccount

This commit is contained in:
George Hotz 2020-11-02 07:38:13 -08:00
parent 3da64acd6b
commit fc358a07ad
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ jobs:
- name: Install SLOCCount
run: sudo apt install sloccount
- name: Check <1000 lines
run: if [ $(sloccount test tinygrad | sed -n 's/.*Total Physical Source Lines of Code (SLOC)[ ]*= \([^ ]*\).*/\1/p' | tr -d ',') -gt 1000 ]; then exit 1; fi
run: sloccount tinygrad test examples; if [ $(sloccount test tinygrad | sed -n 's/.*Total Physical Source Lines of Code (SLOC)[ ]*= \([^ ]*\).*/\1/p' | tr -d ',') -gt 1000 ]; then exit 1; fi
test:
name: Test