remove global PYTHONPATH setting in CI (test.yml) [pr] (#8568)

* remove global PYTHONPATH setting in CI [pr]

* only run mypy in tinygrad/

* still needed for benchmarks
This commit is contained in:
qazal
2025-01-11 12:47:50 -05:00
committed by GitHub
parent 815c505e1d
commit 98c9e23560

View File

@@ -4,7 +4,6 @@ env:
DOWNLOAD_CACHE_VERSION: '8'
CAPTURE_PROCESS_REPLAY: 1
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYTHONPATH: .
on:
push:
@@ -231,7 +230,7 @@ jobs:
- name: Lint tinygrad with pylint
run: python -m pylint tinygrad/
- name: Run mypy
run: python -m mypy --strict-equality --lineprecision-report . && cat lineprecision.txt
run: PYTHONPATH="." python -m mypy --strict-equality --lineprecision-report . && cat lineprecision.txt
- name: Test README
run: awk '/```python/{flag=1;next}/```/{flag=0}flag' README.md > README.py && PYTHONPATH=. python README.py
- name: Run unit tests