run unit test on windows ci (#9187)

* factor out testing_minimal in setup.py [pr]

* testing_unit + windows
This commit is contained in:
chenyu
2025-02-20 14:40:41 -05:00
committed by GitHub
parent 287de4ecc6
commit 3e22747799
3 changed files with 21 additions and 15 deletions

View File

@@ -263,7 +263,7 @@ jobs:
uses: ./.github/actions/setup-tinygrad
with:
key: unittest-12
deps: testing
deps: testing_unit
- name: Test README
run: awk '/```python/{flag=1;next}/```/{flag=0}flag' README.md > README.py && PYTHONPATH=. python README.py
- name: Run unit tests
@@ -624,10 +624,13 @@ jobs:
uses: ./.github/actions/setup-tinygrad
with:
key: windows-minimal
deps: testing_minimal
deps: testing_unit
- name: Set env
shell: bash
run: printf "${{ matrix.backend == 'llvm' && 'LLVM=1' || matrix.backend == 'clang' && 'CLANG=1'}}" >> $GITHUB_ENV
- name: Run unit tests
if: matrix.backend=='llvm'
run: python -m pytest -n=auto test/unit/ --ignore=test/unit/test_disk_tensor.py --ignore=test/unit/test_elf.py --ignore=test/unit/test_tar.py
- name: Run pytest (${{ matrix.backend }})
shell: bash
run: |