Skip to content

Commit 33543b8

Browse files
committed
ci(main): run tests for both ubuntu-latest and macos-latest
1 parent 48603e5 commit 33543b8

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
@@ -38,22 +38,32 @@ jobs:
3838

3939
strategy:
4040
matrix:
41+
os: [ubuntu-latest, macos-latest]
4142
python-version: ["3.9", "3.12"]
4243

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

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

64+
- name: Update pip
65+
run: pip install --upgrade pip
66+
5767
- name: Install pip dependencies
5868
run: |
5969
pip install -e .

0 commit comments

Comments
 (0)