Skip to content

Commit

Permalink
Fix HDF5 installation on macOS runners
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeda committed Nov 25, 2024
1 parent 1c1a4c3 commit 428df3d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
python-version: ["3.10", "3.11", "3.12" ]
os: [ ubuntu-latest ]
include:
- python-version: "3.12"
Expand All @@ -30,7 +30,13 @@ jobs:

- name: Install HDF5 source files
if: runner.os == 'macOS'
run: brew install hdf5
# macOS needs special handling for pkg-config/pkgconf conflict
# HDF5 depends on pkgconf but homebrew comes with pkg-config pre-installed
# We need to unlink pkg-config and force link pkgconf to avoid CI failures
run: |
brew unlink [email protected] || true
brew install hdf5
brew link --overwrite pkgconf
- uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 428df3d

Please sign in to comment.