PICARD-1733: Use official Python binaries on macOS

Fixes issues with builds not running on macOS 10.12 as the Python available on GHA is working only with macOS 10.13 and later.
This commit is contained in:
Philipp Wolfer
2020-02-06 16:42:59 +01:00
parent 1ad55ebff0
commit f3aa0c1b08

View File

@@ -26,33 +26,31 @@ jobs:
env:
DISCID_VERSION: 0.6.2
FPCALC_VERSION: 1.4.4-9
PYTHON_VERSION: 3.7.6
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Cache libdiscid
uses: actions/cache@v1
with:
path: ~/libdiscid
key: ${{ runner.os }}-libdiscid-${{ env.DISCID_VERSION }}
- name: Patch build version
if: startsWith(github.ref, 'refs/tags/') != true
run: |
python setup.py patch_version --platform=$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
- name: Setup macOS build environment
run: |
./scripts/package/macos-setup.sh
echo "::add-path::/Library/Frameworks/Python.framework/Versions/3.7/bin"
mkdir artifacts
- name: Patch build version
if: startsWith(github.ref, 'refs/tags/') != true
run: |
python3 setup.py patch_version --platform=$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements-build.txt
pip install -r requirements-macos.txt
python3 -m pip install --upgrade pip setuptools wheel
pip3 install -r requirements-build.txt
pip3 install -r requirements-macos.txt
- name: Run tests
run: |
python setup.py test
python3 setup.py test
- name: Build macOS app
run: |
./scripts/package/macos-package-app.sh