@@ -3,6 +3,9 @@ name: release-deploy
3
3
on :
4
4
release :
5
5
types : [ published ]
6
+ # push:
7
+ # branches: [ main ]
8
+ # pull_request:
6
9
7
10
jobs :
8
11
build-sdist :
@@ -17,12 +20,13 @@ jobs:
17
20
- uses : actions/setup-python@v4
18
21
name : Install Python
19
22
with :
20
- python-version : ' 3.11 '
23
+ python-version : ' 3.10 '
21
24
22
25
- name : Build sdist
23
26
run : |
24
- python -m pip install .
25
- python setup.py sdist
27
+ python -m pip install -U pip
28
+ python -m pip install poetry
29
+ poetry build -f sdist
26
30
27
31
- name : Store artifacts
28
32
uses : actions/upload-artifact@v3
55
59
platform_id : win32
56
60
57
61
# Windows 64 bit
58
- - os : windows-latest
59
- python : 37
60
- platform_id : win_amd64
61
62
- os : windows-latest
62
63
python : 38
63
64
platform_id : win_amd64
@@ -166,7 +167,7 @@ jobs:
166
167
- name : Install cibuildwheel
167
168
run : |
168
169
python -m pip install -U pip
169
- python -m pip install cibuildwheel==2.12.0
170
+ python -m pip install cibuildwheel>=2.16
170
171
171
172
- name : Build wheels
172
173
env :
@@ -209,6 +210,7 @@ jobs:
209
210
path : dist/
210
211
211
212
- name : Install from package wheels and test
213
+ # If testing wheel builds might need --pre to install dev version
212
214
run : |
213
215
python -m venv testwhl
214
216
source testwhl/bin/activate
@@ -217,8 +219,8 @@ jobs:
217
219
python -m pip uninstall -y pylibjpeg-libjpeg
218
220
python -m pip uninstall -y pylibjpeg-openjpeg
219
221
python -m pip install git+https://github.com/pydicom/pylibjpeg-data
220
- python -m pip install -U --find-links dist/ pylibjpeg-libjpeg
221
- python -c "import pytest; pytest.main([' --pyargs', ' libjpeg.tests'])"
222
+ python -m pip install -U --pre -- find-links dist/ pylibjpeg-libjpeg
223
+ python -m pytest --pyargs libjpeg.tests
222
224
deactivate
223
225
224
226
- name : Install from package tarball and test
@@ -230,8 +232,8 @@ jobs:
230
232
python -m pip uninstall -y pylibjpeg-libjpeg
231
233
python -m pip uninstall -y pylibjpeg-openjpeg
232
234
python -m pip install git+https://github.com/pydicom/pylibjpeg-data
233
- python -m pip install -U dist/pylibjpeg- libjpeg-*.tar.gz
234
- python -c "import pytest; pytest.main([' --pyargs', ' libjpeg.tests'])"
235
+ python -m pip install -U dist/pylibjpeg* libjpeg-*.tar.gz
236
+ python -m pytest --pyargs libjpeg.tests
235
237
deactivate
236
238
237
239
# The pypi upload fails with non-linux containers, so grab the uploaded
0 commit comments