22
22
fail-fast : false
23
23
matrix :
24
24
os : [ubuntu-latest, macos-latest, windows-latest]
25
+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
25
26
steps :
26
27
- name : Set git to use LF on Windows
27
28
if : runner.os == 'Windows'
@@ -31,26 +32,11 @@ jobs:
31
32
- uses : actions/checkout@v2
32
33
with :
33
34
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
39
36
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
54
40
run : |
55
41
python -m pip install tox
56
42
tox --skip-missing-interpreters
63
49
submodules : recursive
64
50
- uses : actions/setup-python@v1
65
51
with :
66
- python-version : 3.8
52
+ python-version : 3.x
67
53
- name : Build source package
68
54
run : python setup.py sdist
69
55
- name : Upload source package
@@ -105,13 +91,13 @@ jobs:
105
91
if : runner.os == 'Windows'
106
92
run : python -m cibuildwheel --output-dir wheelhouse
107
93
env :
108
- CIBW_BUILD : cp35 -${{ matrix.name }}* pp*-${{ matrix.name }}*
94
+ CIBW_BUILD : cp37 -${{ matrix.name }}* pp*-${{ matrix.name }}*
109
95
110
96
- name : Build wheels for Linux and macOS
111
97
if : runner.os != 'Windows'
112
98
run : python -m cibuildwheel --output-dir wheelhouse
113
99
env :
114
- CIBW_BUILD : cp27-${{ matrix.name }}* cp35 -${{ matrix.name }}* pp*-${{ matrix.name }}*
100
+ CIBW_BUILD : cp37 -${{ matrix.name }}* pp*-${{ matrix.name }}*
115
101
CIBW_ARCHS_LINUX : auto aarch64
116
102
CIBW_BEFORE_BUILD_LINUX : yum install -y libffi-devel
117
103
- uses : actions/upload-artifact@v2
0 commit comments