2222 fail-fast : false
2323 matrix :
2424 os : [ubuntu-latest, macos-latest, windows-latest]
25+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
2526 steps :
2627 - name : Set git to use LF on Windows
2728 if : runner.os == 'Windows'
@@ -31,26 +32,11 @@ jobs:
3132 - uses : actions/checkout@v2
3233 with :
3334 submodules : recursive
34- - uses : actions/setup-python@v1
35- if : runner.os != 'Windows' # see issue #174
36- with :
37- python-version : 2.7
38- - uses : actions/setup-python@v1
35+ - uses : actions/setup-python@v4
3936 with :
40- python-version : 3.5
41- - uses : actions/setup-python@v1
42- with :
43- python-version : 3.9
44- # - name: Install Visual C++ for Python 2.7
45- # if: runner.os == 'Windows'
46- # run: choco install vcpython27 -f -y
47- - name : Run tests on Windows # see issue #174
48- if : runner.os == 'Windows'
49- run : |
50- python -m pip install tox
51- tox -e py35,py39
52- - name : Run tests on Linux and macOS
53- if : runner.os != 'Windows'
37+ python-version : ${{ matrix.python-version }}
38+ allow-prereleases : true
39+ - name : Run tests
5440 run : |
5541 python -m pip install tox
5642 tox --skip-missing-interpreters
6349 submodules : recursive
6450 - uses : actions/setup-python@v1
6551 with :
66- python-version : 3.8
52+ python-version : 3.x
6753 - name : Build source package
6854 run : python setup.py sdist
6955 - name : Upload source package
@@ -105,13 +91,13 @@ jobs:
10591 if : runner.os == 'Windows'
10692 run : python -m cibuildwheel --output-dir wheelhouse
10793 env :
108- CIBW_BUILD : cp35 -${{ matrix.name }}* pp*-${{ matrix.name }}*
94+ CIBW_BUILD : cp37 -${{ matrix.name }}* pp*-${{ matrix.name }}*
10995
11096 - name : Build wheels for Linux and macOS
11197 if : runner.os != 'Windows'
11298 run : python -m cibuildwheel --output-dir wheelhouse
11399 env :
114- CIBW_BUILD : cp27-${{ matrix.name }}* cp35 -${{ matrix.name }}* pp*-${{ matrix.name }}*
100+ CIBW_BUILD : cp37 -${{ matrix.name }}* pp*-${{ matrix.name }}*
115101 CIBW_ARCHS_LINUX : auto aarch64
116102 CIBW_BEFORE_BUILD_LINUX : yum install -y libffi-devel
117103 - uses : actions/upload-artifact@v2
0 commit comments