mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-09-04 14:25:51 +00:00
add windows test to ci (#8761)
Co-authored-by: b1tg <[email protected]>
This commit is contained in:
@@ -619,6 +619,44 @@ jobs:
|
||||
if: matrix.backend=='amd'
|
||||
run: python -m pytest -n=auto test/test_hcq.py test/test_tiny.py --durations=20
|
||||
|
||||
wintests:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
backend: [llvm]
|
||||
|
||||
name: Tests on Windows (${{ matrix.backend }})
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2 # NOTE: this fetches the HEAD commit of the PR
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.12
|
||||
- name: Cache python packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ env.Python3_ROOT_DIR }}\Lib\site-packages
|
||||
key: windows-${{ matrix.backend }}-packages-${{ hashFiles('**/setup.py') }}
|
||||
- name: Install dependencies
|
||||
run: pip install --user -e '.[testing]' --extra-index-url https://download.pytorch.org/whl/cpu
|
||||
- name: Check Device.DEFAULT and print some source
|
||||
env:
|
||||
DEBUG: 5
|
||||
LLVM: 1
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
python3 test/test_ops.py TestOps.test_add
|
||||
- name: Run pytest
|
||||
env:
|
||||
DEBUG: 5
|
||||
LLVM: 1
|
||||
run: python -m pytest -n=auto test/test_tiny.py --durations=20
|
||||
|
||||
#testunicorn:
|
||||
# name: ARM64 unicorn Test
|
||||
# runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user