11name : Create Release
2- # Note: Wheels for Apple M1 builds locally and uploaded manually for now .
2+ # Note: Wheels for the Apple M1 are assembled locally and manually uploaded .
33
44on :
55 workflow_dispatch :
@@ -245,10 +245,13 @@ jobs:
245245
246246 steps :
247247 - uses : actions/checkout@v3
248+
249+ - uses : actions/setup-python@v4
250+ with :
251+ python-version : ' 3.10'
252+
248253 - name : Install requirements
249- run : |
250- python3 -m pip install --upgrade pip
251- python3 -m pip install --user check-manifest twine
254+ run : python3 -m pip install check-manifest twine wheel
252255
253256 - name : Run check-manifest
254257 run : python3 -m check_manifest
@@ -260,23 +263,19 @@ jobs:
260263
261264 - name : Build sdist
262265 run : |
263- python3 -m pip install pytest piexif coverage pillow numpy pympler defusedxml
266+ python3 -m pip install pytest piexif pillow numpy pympler defusedxml
264267 python3 -m build --sdist --outdir wheelhouse
265268
266269 - name : Install and check sdist
267270 run : |
268271 python3 -m pip install --user wheelhouse/*.tar.gz
269272 python3 -m twine check wheelhouse/*
270273
271- - name : Generate coverage report
272- run : coverage run -m pytest && coverage xml
274+ - name : LibHeif info
275+ run : python3 -c "import pillow_heif; print(pillow_heif.libheif_info())"
273276
274- - name : Upload report to Codecov
275- uses : codecov/codecov-action@v3
276- with :
277- file : ./coverage.xml
278- fail_ci_if_error : true
279- verbose : true
277+ - name : Test sdist
278+ run : python3 -m pytest -rs
280279
281280 - name : Upload sdist
282281 uses : actions/upload-artifact@v3
0 commit comments