1616 runs-on : windows-latest
1717 strategy :
1818 matrix :
19- # TODO: Freeze as 3.10.5 for now; Follow-up this issue by https://github.com/actions/setup-python/issues/481
20- python-version : ['3.7', '3.8', '3.9', '3.10.5']
19+ # TODO: Freeze as 3.10.5 for now and use the latest 3.10 after future numpy upgrade in ONNX;
20+ # related issue: https://github.com/actions/setup-python/issues/481
21+ python-version : ['3.7', '3.8', '3.9', '3.10.5', '3.11']
2122 architecture : ['x64', 'x86']
2223 steps :
2324 - name : Checkout ONNX
@@ -93,12 +94,16 @@ jobs:
9394 python -m pip uninstall -y numpy onnx && python -m pip install numpy
9495 Get-ChildItem -Path dist/*.whl | foreach {python -m pip install --upgrade $_.fullname}
9596 pytest
96-
97+ # TODO: Remove one if condition after using consistent NumPy version for all Python versions
9798 - name : Verify ONNX with the minimum supported numpy (from requirements.txt)
9899 if : ${{ always() }}
99100 run : |
100101 cd onnx
101- python -m pip uninstall -y numpy onnx && python -m pip install numpy==1.16.6
102+ if ('${{ matrix.python-version }}' -eq '3.11') {
103+ python -m pip uninstall -y numpy onnx && python -m pip install numpy==1.23.2
104+ } else {
105+ python -m pip uninstall -y numpy onnx && python -m pip install numpy==1.16.6
106+ }
102107 Get-ChildItem -Path dist/*.whl | foreach {python -m pip install --upgrade $_.fullname}
103108 pytest
104109
@@ -119,6 +124,7 @@ jobs:
119124 pytest
120125
121126 - name : Verify ONNX with ONNX Runtime PyPI package
127+ if : matrix.python-version != '3.11'
122128 run : |
123129 python -m pip install -q onnxruntime
124130 python onnx\onnx\test\test_with_ort.py
0 commit comments