-
Notifications
You must be signed in to change notification settings - Fork 22
63 lines (51 loc) · 1.64 KB
/
osx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build macOS Homebrew wheels
on:
push:
branches: [ master ]
tags: [ "*" ]
pull_request:
branches: [ master ]
jobs:
build_wheel_macos:
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14]
runs-on: ${{ matrix.os }}
# This is still pretty much an experimental feature
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Needed for `setuptools-scm`
fetch-depth: 0
# See https://github.com/orgs/Homebrew/discussions/3895#discussioncomment-4130560
- name: Ensure we use Homebrew Python
run: |
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
brew unlink [email protected]
brew link [email protected]
- name: Install Homebrew packages
run: |
brew tap casacore/tap
brew install casacore
- name: Make virtualenv
run: python3 -m venv venv
- name: Install Python dependencies
run: venv/bin/pip install --upgrade pip wheel delocate pytest
- name: Compile and install python-casacore
run: venv/bin/pip install .
- name: Run pytest
run: cd tests && ../venv/bin/pytest
- name: Make binary wheel
run: |
venv/bin/pip install --upgrade six scikit-build-core setuptools_scm
venv/bin/pip wheel -w dist .
- name: Delocate binary wheel
run: venv/bin/delocate-wheel -v dist/*.whl
- name: Publish macOS binary wheels
uses: actions/upload-artifact@v4
with:
name: wheel_${{ matrix.os }}
path: dist/*.whl