@@ -67,13 +67,14 @@ jobs:
67
67
shell : bash
68
68
run : |
69
69
70
- pytest tests
70
+ pytest -v tests
71
71
72
72
- name : Test mwe
73
73
shell : bash
74
74
run : |
75
75
76
76
python examples/mwe.py
77
+ python examples/flash_attention.py
77
78
78
79
test-other-host-bindings :
79
80
@@ -105,20 +106,20 @@ jobs:
105
106
shell : bash
106
107
run : |
107
108
if [ ${{ matrix.os }} == 'windows-2022' ]; then
108
- pytest -s tests/test_other_hosts.py
109
+ pytest -v - s tests/test_other_hosts.py
109
110
else
110
- pytest --capture=tee-sys tests/test_other_hosts.py
111
+ pytest -v - -capture=tee-sys tests/test_other_hosts.py
111
112
fi
112
113
113
- test-jupyter :
114
+ test-examples :
114
115
115
116
runs-on : ${{ matrix.os }}
116
117
117
118
strategy :
118
119
fail-fast : false
119
120
matrix :
120
- os : [ ubuntu-22.04 ]
121
- py_version : [ "3.10 " ]
121
+ os : [ ubuntu-22.04, macos-13, macos-14, windows-2022, ubuntu-22.04-arm ]
122
+ py_version : [ "3.12", "3.13 " ]
122
123
123
124
steps :
124
125
- name : Checkout
@@ -130,16 +131,29 @@ jobs:
130
131
python-version : ${{ matrix.py_version }}
131
132
allow-prereleases : true
132
133
133
- - name : Run notebook
134
+ - name : Install and configure
135
+ shell : bash
136
+ run : |
137
+
138
+ pip install .[test,mlir,eudsl] -v
139
+
140
+ - name : Test jupyter notebooks
141
+ # sed: can't read C:\hostedtoolcache\windows\Python\3.12.10\x64/jupyter_client/runapp.py: No such file or directory
142
+ if : matrix.os != 'windows-2022'
134
143
shell : bash
135
144
run : |
136
145
137
146
pip install jupyter
138
- pip install -q mlir-python-bindings
139
- pip install -q .
140
147
141
148
sed -i.bak 's/OUTPUT_TIMEOUT = 10/OUTPUT_TIMEOUT = 100/g' \
142
149
$(python -c 'import site; print(site.getsitepackages()[0])')/jupyter_client/runapp.py
143
150
144
151
jupyter execute examples/mlir_python_extras.ipynb
145
152
jupyter execute examples/vectorization_e2e.ipynb
153
+
154
+ - name : Test gpu examples
155
+ shell : bash
156
+ run : |
157
+
158
+ python examples/rdna_matmul_opt.py
159
+ python examples/cuda_matmul_opt.py
0 commit comments