Update README.md #39
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: 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 |