Skip to content

Commit 1fbaa67

Browse files
committed
ci(main): run tests for both ubuntu-latest and macos-latest
1 parent 32fecea commit 1fbaa67

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/main.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,32 @@ jobs:
3939

4040
strategy:
4141
matrix:
42+
os: [ubuntu-latest, macos-latest]
4243
python-version: ["3.9", "3.12"]
4344

44-
runs-on: ubuntu-latest
45+
runs-on: ${{ matrix.os }}
4546
steps:
4647
- uses: actions/checkout@v4
4748

4849
- name: Install apt dependencies
50+
if: matrix.os == 'ubuntu-latest'
4951
run: |
5052
sudo apt-get update
5153
sudo apt-get install -y libopenmpi-dev openmpi-bin libhdf5-serial-dev
5254
55+
- name: Install brew dependencies
56+
if: matrix.os == 'macos-latest'
57+
run: |
58+
brew install open-mpi hdf5
59+
5360
- name: Set up Python ${{ matrix.python-version }}
5461
uses: actions/setup-python@v5
5562
with:
5663
python-version: ${{ matrix.python-version }}
5764

65+
- name: Update pip
66+
run: pip install --upgrade pip
67+
5868
- name: Install pip dependencies
5969
run: |
6070
pip install -e .[compression,mpi,test]

0 commit comments

Comments
 (0)