Update for xarray backend #294
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test on macOS | |
on: [push, pull_request] | |
jobs: | |
build-macos: | |
name: Python (${{ matrix.python-version }}) | |
runs-on: ${{ matrix.os }} | |
env: | |
CC: gcc-12 | |
strategy: | |
matrix: | |
os: ["macos-latest",] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
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 | |
- 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 | |
pip install . | |
pytest ./tests/ |