1919 strategy :
2020 fail-fast : false
2121 matrix :
22- os : [ubuntu-20.04 , macos-10.15 , windows-latest]
23- python-version : [3.6, 3.7, 3.8, 3.9 ]
22+ os : [ubuntu-latest , macos-latest , windows-latest]
23+ python-version : ["3.8", "3.9", "3.10", "3.11" ]
2424
2525 steps :
2626 - uses : actions/checkout@v2
@@ -30,22 +30,23 @@ jobs:
3030 with :
3131 python-version : ${{ matrix.python-version }}
3232
33- - name : Brew unlink gcc@9 to avoid build error with OpenMP on MacOS
34- if : matrix.os == 'macos-10.15'
35- run : brew unlink gcc@9
36-
3733 - name : Display Python version
3834 run : python -c "import sys; print(sys.version)"
3935
40- - name : Install dependencies
36+ - name : Install numpy
37+ run : |
38+ python -m pip install numpy==1.24.3
39+ python -c "import numpy; print(numpy.__version__)"
40+
41+ - name : Install other dependencies
4142 run : |
42- python -m pip install --only-binary=numpy,scipy numpy scipy Cython wheel
43+ python -m pip install scipy Cython wheel
4344
4445 - name : Build wheels
4546 run : python setup.py bdist_wheel
4647
4748 - name : Rename Linux wheels to supported platform of PyPI
48- if : matrix.os == 'ubuntu-20.04 '
49+ if : matrix.os == 'ubuntu-latest '
4950 run : for f in dist/*.whl; do mv "$f" "$(echo "$f" | sed s/linux/manylinux1/)"; done
5051
5152 - name : Publish wheels to GitHub artifacts
5758
5859 publish-pypi :
5960 needs : [build-wheels]
60- runs-on : ubuntu-20.04
61+ runs-on : ubuntu-latest
6162 steps :
6263 - uses : actions/checkout@v2
6364
@@ -69,14 +70,19 @@ jobs:
6970 - name : Set up Python
7071 uses : actions/setup-python@v2
7172 with :
72- python-version : 3.9
73+ python-version : " 3.10 "
7374
7475 - name : Display Python version
7576 run : python -c "import sys; print(sys.version)"
7677
77- - name : Install dependencies
78+ - name : Install numpy
79+ run : |
80+ python -m pip install numpy==1.24.3
81+ python -c "import numpy; print(numpy.__version__)"
82+
83+ - name : Install other dependencies
7884 run : |
79- python -m pip install --only-binary=numpy,scipy numpy scipy Cython wheel
85+ python -m pip install scipy Cython wheel
8086
8187 - name : Build source tar file
8288 run : python setup.py sdist
0 commit comments