Skip to content

Commit

Permalink
CI & CD: macos: adding actions/setup-python@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 committed Aug 19, 2022
1 parent d452747 commit baa6bad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Create Release
#Note: Wheels for Apple M1 builds locally and uploaded manually for now.
#Note: Wheels for the Apple M1 are assembled locally and manually uploaded.

on:
workflow_dispatch:
Expand Down Expand Up @@ -245,10 +245,13 @@ jobs:

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install requirements
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --user check-manifest twine
run: python3 -m pip install check-manifest twine wheel

- name: Run check-manifest
run: python3 -m check_manifest
Expand All @@ -260,23 +263,19 @@ jobs:
- name: Build sdist
run: |
python3 -m pip install pytest piexif coverage pillow numpy pympler defusedxml
python3 -m pip install pytest piexif pillow numpy pympler defusedxml
python3 -m build --sdist --outdir wheelhouse
- name: Install and check sdist
run: |
python3 -m pip install --user wheelhouse/*.tar.gz
python3 -m twine check wheelhouse/*
- name: Generate coverage report
run: coverage run -m pytest && coverage xml
- name: LibHeif info
run: python3 -c "import pillow_heif; print(pillow_heif.libheif_info())"

- name: Upload report to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: true
verbose: true
- name: Test sdist
run: python3 -m pytest -rs

- name: Upload sdist
uses: actions/upload-artifact@v3
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-src-build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install brew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Expand Down

0 comments on commit baa6bad

Please sign in to comment.