-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (37 loc) · 1.27 KB
/
build_macos.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
name: Build and Test on macOS
on: [push, pull_request]
jobs:
build-macos:
name: py${{ matrix.python-version }}_cc=${{ matrix.compiler }}_static=${{ matrix.staticlib }}
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.compiler }}
strategy:
matrix:
os: ["macos-latest",]
compiler: ["gcc-12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12","3.13"]
staticlib: [ "True", "False" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install macOS Dependencies
run: |
brew install jasper libpng libaec
brew tap eengl/nceplibs
brew install nceplibs-g2c nceplibs-ip
- name: Install python dependencies via pip
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade wheel
python3 -m pip install -r requirements.txt
- name: Install grib2io and test
run: |
python --version
USE_STATIC_LIBS=${{ matrix.staticlib }} pip install .
python -c "import grib2io; grib2io.show_config()"
pytest ./tests/