add mypy to ci testing (#353)

This commit is contained in:
Nicklas Boman
2022-07-04 00:11:35 +02:00
committed by GitHub
parent 57ebce8d67
commit 64d986bc8b
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/