Skip to content

Commit baa6bad

Browse files
committed
CI & CD: macos: adding actions/setup-python@v4
1 parent d452747 commit baa6bad

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

.github/workflows/create-release-draft.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 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

44
on:
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

.github/workflows/test-src-build-macos.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v3
3434

35+
- uses: actions/setup-python@v4
36+
with:
37+
python-version: '3.10'
38+
3539
- name: Install brew
3640
run: |
3741
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

0 commit comments

Comments
 (0)