Skip to content

Commit

Permalink
ci(github): run on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
nritsche authored and james-s-willis committed May 26, 2021
1 parent dd8e883 commit a03ac8b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ubuntu.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,33 @@ jobs:

strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.9]
python-version: [3.6, 3.9]
os: [ubuntu-latest, macos-latest]

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- name: Install apt dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get install -y libhdf5-serial-dev hdf5-tools pkg-config
sudo apt-get install -y libhdf5-serial-dev hdf5-tools pkg-config
- name: Install homebrew dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install hdf5 pkg-config
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install h5py
if: ${{ matrix.os == 'macos-latest' }}
run: |
pip install --no-binary=h5py h5py
- name: Install pip dependencies
run: |
pip install Cython
Expand Down

0 comments on commit a03ac8b

Please sign in to comment.