44
44
45
45
- uses : actions/upload-artifact@v3
46
46
with :
47
- name : wheels
47
+ name : wheels-lin
48
48
path : ./python/dist/*.whl
49
49
50
50
- name : Make sdist
@@ -61,11 +61,11 @@ jobs:
61
61
path : ./python/dist/*.tar.gz
62
62
63
63
build_mac :
64
- runs-on : macos-12
64
+ runs-on : macos-13
65
65
strategy :
66
66
max-parallel : 4
67
67
matrix :
68
- python-version : ["3.7 ", "3.8 ", "3.9 ", "3.10 ", "3.11 "]
68
+ python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 "]
69
69
steps :
70
70
- uses : actions/checkout@v3
71
71
- name : Set up Python ${{ matrix.python-version }}
83
83
run : |
84
84
cd python
85
85
export PATH=$PATH:$HOME/.cargo/bin
86
- pip install wheel
86
+ pip install wheel setuptools
87
87
python setup.py bdist_wheel -p macosx-10.9-universal2
88
88
pip install dist/*.whl
89
89
- name : Test
93
93
pip install pytest
94
94
pytest tests
95
95
96
- - uses : actions/upload-artifact@v3
96
+ - uses : actions/upload-artifact@v4
97
97
with :
98
- name : wheels
98
+ name : wheels-mac-py${{ matrix.python-version }}
99
99
path : ./python/dist/*.whl
100
100
101
101
build_win :
@@ -106,18 +106,18 @@ jobs:
106
106
strategy :
107
107
max-parallel : 4
108
108
matrix :
109
- python-version : ["3.7 ", "3.8 ", "3.9 ", "3.10 ", "3.11 "]
109
+ python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 ", "3.12 "]
110
110
steps :
111
- - uses : actions/checkout@v3
111
+ - uses : actions/checkout@v4
112
112
- name : Set up Python ${{ matrix.python-version }}
113
- uses : actions/setup-python@v4
113
+ uses : actions/setup-python@v5
114
114
with :
115
115
python-version : ${{ matrix.python-version }}
116
116
architecture : " x64" # (x64 or x86)
117
117
- name : Build
118
118
run : |
119
119
cd python
120
- pip install wheel
120
+ pip install wheel setuptools
121
121
python setup.py bdist_wheel -p $(python -c "import distutils.util; print(distutils.util.get_platform())")
122
122
pip install dist/*.whl
123
123
- name : Test
@@ -133,9 +133,9 @@ jobs:
133
133
python -c "import wkw"
134
134
pytest tests -k "not big_read"
135
135
136
- - uses : actions/upload-artifact@v3
136
+ - uses : actions/upload-artifact@v4
137
137
with :
138
- name : wheels
138
+ name : wheels-win-py${{ matrix.python-version }}
139
139
path : ./python/dist/*.whl
140
140
141
141
publish :
@@ -147,20 +147,21 @@ jobs:
147
147
runs-on : ubuntu-latest
148
148
if : startsWith(github.event.ref, 'refs/tags')
149
149
steps :
150
- - uses : actions/checkout@v3
150
+ - uses : actions/checkout@v4
151
151
with :
152
152
fetch-depth : " 0"
153
- - name : Set up Python ${{ matrix.python-version }}
154
- uses : actions/setup-python@v4
153
+ - name : Set up Python
154
+ uses : actions/setup-python@v5
155
155
with :
156
- python-version : " 3.10 "
156
+ python-version : " 3.11 "
157
157
- name : Get wheels
158
- uses : actions/download-artifact@v3
158
+ uses : actions/download-artifact@v4
159
159
with :
160
- name : wheels
160
+ pattern : wheels-*
161
+ merge-multiple : true
161
162
path : dist
162
163
- name : Get tar.gz
163
- uses : actions/download-artifact@v3
164
+ uses : actions/download-artifact@v4
164
165
with :
165
166
name : targz
166
167
path : dist
0 commit comments