File: osx.yml

package info (click to toggle)
python-casacore 3.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: python: 4,170; cpp: 1,549; makefile: 68
file content (48 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download | duplicates (2)
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
name: OS X

on:
  push:
    branches: [ master ]
    tags: [ "*" ]
  pull_request:
    branches: [ master ]

jobs:
  osx:
    runs-on: macos-11
    continue-on-error: true

    steps:
      - name: checkout
        uses: actions/checkout@v4
        with:
          # Needed for `setuptools-scm`
          fetch-depth: 0

      - name: install homebrew packages
        run: |
          brew tap casacore/tap 
          brew install casacore --with-python

      - 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: CFLAGS="-I/usr/local/include -L/usr/local/lib" venv/bin/pip install .

      - name: Run pytest
        run: venv/bin/pytest

      - name: make binary wheel
        run: venv/bin/pip wheel -w dist .

      - name: Delocate binary wheel
        run: venv/bin/delocate-wheel -v dist/*.whl

      - name: Publish OS X binary wheels
        uses: actions/upload-artifact@v4
        with:
          path: dist/*.whl