From fc358a07ad1e9291e909a6e2222df923dadbc442 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Mon, 2 Nov 2020 07:38:13 -0800 Subject: [PATCH] print sloccount --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36b454b8..3ea96097 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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