mirror of https://github.com/commaai/tinygrad.git
print sloccount
This commit is contained in:
parent
3da64acd6b
commit
fc358a07ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue