1616
1717jobs :
1818
19- test-all :
19+ test-mlir-bindings :
2020
2121 runs-on : ${{ matrix.os }}
2222
2323 strategy :
2424 fail-fast : false
2525 matrix :
2626 os : [ ubuntu-22.04, macos-11, windows-2022 ]
27- py_version : [ "3.10", "3.11" ]
27+ py_version : [ "3.10", "3.11", "3.12" ]
2828
2929 steps :
3030 - name : Checkout
@@ -34,14 +34,53 @@ jobs:
3434 uses : actions/setup-python@v4
3535 with :
3636 python-version : ${{ matrix.py_version }}
37+ allow-prereleases : true
3738
3839 - name : Install and configure
3940 shell : bash
4041 run : |
4142 pip install .[test,mlir] -v -f https://makslevental.github.io/wheels
4243 mlir-python-utils-generate-all-upstream-trampolines
43-
44- HOST_MLIR_PYTHON_PACKAGE_PREFIX=jaxlib.mlir pip install .[jax] -v
44+
45+ - name : Test
46+ shell : bash
47+ run : |
48+ if [ ${{ matrix.os }} == 'windows-2022' ]; then
49+ pytest -s --ignore-glob=*test_other_hosts* tests
50+ else
51+ pytest --capture=tee-sys --ignore-glob=*test_other_hosts* tests
52+ fi
53+
54+ - name : Test mwe
55+ shell : bash
56+ run : |
57+ python examples/mwe.py
58+
59+ test-other-host-bindings :
60+
61+ runs-on : ${{ matrix.os }}
62+
63+ strategy :
64+ fail-fast : false
65+ matrix :
66+ os : [ ubuntu-22.04, macos-11, windows-2022 ]
67+ py_version : [ "3.10", "3.11" ]
68+
69+ steps :
70+ - name : Checkout
71+ uses : actions/checkout@v2
72+
73+ - name : Setup Python
74+ uses : actions/setup-python@v4
75+ with :
76+ python-version : ${{ matrix.py_version }}
77+ allow-prereleases : true
78+
79+ - name : Install and configure
80+ shell : bash
81+ run : |
82+ export PIP_FIND_LINKS=https://makslevental.github.io/wheels
83+ HOST_MLIR_PYTHON_PACKAGE_PREFIX=jaxlib.mlir pip install .[test,jax] -v
4584 jaxlib-mlir-python-utils-generate-all-upstream-trampolines
4685
4786 pip install aie -f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/latest-wheels --no-index
@@ -53,16 +92,11 @@ jobs:
5392 shell : bash
5493 run : |
5594 if [ ${{ matrix.os }} == 'windows-2022' ]; then
56- pytest -s tests
95+ pytest -s tests/test_other_hosts.py
5796 else
58- pytest --capture=tee-sys tests
97+ pytest --capture=tee-sys tests/test_other_hosts.py
5998 fi
6099
61- - name : Test mwe
62- shell : bash
63- run : |
64- python examples/mwe.py
65-
66100 test-jupyter :
67101
68102 runs-on : ${{ matrix.os }}
81115 uses : actions/setup-python@v4
82116 with :
83117 python-version : ${{ matrix.py_version }}
118+ allow-prereleases : true
84119
85120 - name : Run notebook
86121 shell : bash
98133 fail-fast : false
99134 matrix :
100135 os : [ ubuntu-22.04 ]
101- py_version : [ "3.10", "3.11" ]
136+ py_version : [ "3.10", "3.11", "3.12" ]
102137
103138 steps :
104139 - name : Checkout
@@ -120,16 +155,17 @@ jobs:
120155 bash miniconda.sh -b -u -p /root/miniconda3
121156 eval "$(/root/miniconda3/bin/conda shell.bash hook)"
122157 conda init
123- conda install -q -y python=${{ matrix.py_version }}
124158
125159 run : |
126160
127161 eval "$(/root/miniconda3/bin/conda shell.bash hook)"
162+ conda create -n env -q -y -c conda-forge/label/python_rc python=${{ matrix.py_version }}
163+ conda activate env
128164
129165 cd /workspace
130166
131- pip install .[test,mlir] -f https://makslevental.github.io/wheels
167+ pip install -q .[test,mlir] -f https://makslevental.github.io/wheels
132168 mlir-python-utils-generate-all-upstream-trampolines
133169
134- pytest --capture=tee-sys --ignore-glob=*test_smoke * tests
170+ pytest --capture=tee-sys --ignore-glob=*test_other_hosts * tests
135171 python examples/mwe.py
0 commit comments