mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 23:18:04 -05:00
less than 1000 lines (#24)
* Actions sloccount check for < 1000 lines (tests and source) * Sudo lol * Test sloccount in actions ci * More tests for the expression * apt install test to do validation in cli * fuck test * try something that probably won't work * ofcourse not * test that test fails if lines greater than 1000 * more than 1000 results in 1,000 not 1000. Delete * remove test lines. Should pass now * Untouch file Untouched a file that was changed in testing
This commit is contained in:
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@@ -5,6 +5,18 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lines:
|
||||
name: Less than 1000 lines
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
- 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
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user