Skip to content

Commit 9de0ccb

Browse files
authored
fix nbs again (#160)
1 parent a468f4b commit 9de0ccb

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,11 @@ jobs:
175175
176176
pip install -q jupyter
177177
178-
SCRIPT_ADDRESS="https://raw.githubusercontent.com/makslevental/mlir-python-extras/refs/heads/${BRANCH}/scripts/get_latest_bindings.py"
179-
curl $SCRIPT_ADDRESS -o get_latest_bindings.py
180-
LATEST_VERSION=$(python get_latest_bindings.py "none")
181-
pip install mlir_python_bindings==$LATEST_VERSION -f https://makslevental.github.io/wheels
182-
pip install "git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
183-
184178
sed -i.bak 's/OUTPUT_TIMEOUT = 10/OUTPUT_TIMEOUT = 1000/g' \
185179
$(python -c 'import site; print(site.getsitepackages()[0])')/jupyter_client/runapp.py
186180
187-
jupyter execute examples/mlir_python_extras.ipynb --output=mlir_python_extras_output || true
188-
cat examples/mlir_python_extras_output.ipynb
181+
jupyter execute examples/mlir_python_extras.ipynb --output=mlir_python_extras_output
182+
cat examples/mlir_python_extras_output.ipynb | jq '.cells[].outputs | select(length > 0) | .[0] | .text'
189183
jupyter execute examples/vectorization_e2e.ipynb --output=vectorization_e2e_output
190184
cat examples/vectorization_e2e_output.ipynb | jq '.cells[].outputs | select(length > 0) | .[0] | .text'
191185
if [ ${{ matrix.os }} == 'ubuntu-22.04' ]; then

examples/mlir_python_extras.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"%%bash\n",
4343
"curl $SCRIPT_ADDRESS -o get_latest_bindings.py\n",
4444
"latest_version=$(python get_latest_bindings.py \"none\")\n",
45-
"pip install mlir_python_bindings==$latest_version -f https://makslevental.github.io/wheels\n",
46-
"pip install git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
45+
"pip install -q mlir_python_bindings==$latest_version -f https://makslevental.github.io/wheels\n",
46+
"pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
4747
],
4848
"outputs": [],
4949
"execution_count": 12

examples/vectorization_e2e.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@
1515
}
1616
},
1717
"cells": [
18-
{
19-
"metadata": {},
20-
"cell_type": "code",
21-
"source": "",
22-
"outputs": [],
23-
"execution_count": null
24-
},
2518
{
2619
"metadata": {},
2720
"cell_type": "markdown",

0 commit comments

Comments
 (0)