Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ jobs:
shell: bash
run: |

pytest tests
pytest -v tests

- name: Test mwe
shell: bash
run: |

python examples/mwe.py
python examples/flash_attention.py

test-other-host-bindings:

Expand Down Expand Up @@ -105,20 +106,20 @@ jobs:
shell: bash
run: |
if [ ${{ matrix.os }} == 'windows-2022' ]; then
pytest -s tests/test_other_hosts.py
pytest -v -s tests/test_other_hosts.py
else
pytest --capture=tee-sys tests/test_other_hosts.py
pytest -v --capture=tee-sys tests/test_other_hosts.py
fi

test-jupyter:
test-examples:

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04 ]
py_version: [ "3.10" ]
os: [ ubuntu-22.04, macos-13, macos-14, windows-2022, ubuntu-22.04-arm ]
py_version: [ "3.12", "3.13" ]

steps:
- name: Checkout
Expand All @@ -130,16 +131,29 @@ jobs:
python-version: ${{ matrix.py_version }}
allow-prereleases: true

- name: Run notebook
- name: Install and configure
shell: bash
run: |

pip install .[test,mlir,eudsl] -v

- name: Test jupyter notebooks
# sed: can't read C:\hostedtoolcache\windows\Python\3.12.10\x64/jupyter_client/runapp.py: No such file or directory
if: matrix.os != 'windows-2022'
shell: bash
run: |

pip install jupyter
pip install -q mlir-python-bindings
pip install -q .

sed -i.bak 's/OUTPUT_TIMEOUT = 10/OUTPUT_TIMEOUT = 100/g' \
$(python -c 'import site; print(site.getsitepackages()[0])')/jupyter_client/runapp.py

jupyter execute examples/mlir_python_extras.ipynb
jupyter execute examples/vectorization_e2e.ipynb

- name: Test gpu examples
shell: bash
run: |

python examples/rdna_matmul_opt.py
python examples/cuda_matmul_opt.py
Loading