add mypy to ci testing (#353)

This commit is contained in:
Nicklas Boman 2022-07-04 00:11:35 +02:00 committed by GitHub
commit 64d986bc8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -94,3 +94,21 @@ jobs:
run: pip install -e '.[gpu,testing]'
- name: Run Pytest
run: GPU=1 python -m pytest -s -v
testmypy:
name: Mypy Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Update packages
run: sudo apt-get update
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Dependencies
run: pip install -e '.[testing]'
- name: Run mypy
run: mypy tinygrad/

View file

@ -30,6 +30,7 @@ setup(name='tinygrad',
"protobuf~=3.19.0",
"onnx",
"onnx2torch",
"mypy",
],
},
include_package_data=True)