Skip to content

Commit a937d59

Browse files
committed
Attempt 3
1 parent 1799f5f commit a937d59

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/build-and-run-tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020
cache: "pip"
2121
cache-dependency-path: "**/pyproject.toml"
22+
- name: Install HDF5 (macOS only)
23+
if: runner.os == 'macOS'
24+
run: |
25+
brew install hdf5
26+
brew install c-blosc
27+
- name: Set HDF5_DIR environment variable (macOS only)
28+
if: runner.os == 'macOS'
29+
run: |
30+
echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV
31+
echo "BLOSC_DIR=$(brew --prefix c-blosc)" >> $GITHUB_ENV
2232
- name: Install dependencies
2333
run: |
2434
python -m pip install --upgrade pip

.github/workflows/run-examples.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020
cache: "pip"
2121
cache-dependency-path: "**/pyproject.toml"
22+
- name: Install HDF5 (macOS only)
23+
if: runner.os == 'macOS'
24+
run: |
25+
brew install hdf5
26+
brew install c-blosc
27+
- name: Set HDF5_DIR environment variable (macOS only)
28+
if: runner.os == 'macOS'
29+
run: |
30+
echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV
31+
echo "BLOSC_DIR=$(brew --prefix c-blosc)" >> $GITHUB_ENV
2232
- name: Install dependencies
2333
run: |
2434
python -m pip install --upgrade pip setuptools wheel

0 commit comments

Comments
 (0)