Skip to content

Merge pull request #16 from NOAA-MDL/mac-win-build-test #33

Merge pull request #16 from NOAA-MDL/mac-win-build-test

Merge pull request #16 from NOAA-MDL/mac-win-build-test #33

Workflow file for this run

name: Build and Test on macos
on: [push, pull_request]
jobs:
build-macos:
name: Python (${{ matrix.python-version }})
runs-on: macos-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python (Conda)
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
auto-activate-base: true
activate-environment: test
- name: Install conda dependencies
run: |
conda install c-compiler gfortran nceplibs-g2c nceplibs-ip ninja numpy pip pytest setuptools
- name: Install with pip
run: |
pip install .
- name: Test with pytest
run: |
python --version
#pytest