Skip to content

Commit 6b6d707

Browse files
committed
Use miniforge to install pytorch / healpy on MacOS
1 parent cfb0484 commit 6b6d707

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,22 @@ jobs:
3939
with:
4040
fetch-depth: 0
4141
fetch-tags: true
42+
43+
- if: matrix.os == 'macos-latest'
44+
name: Set up Miniforge
45+
uses: conda-incubator/setup-miniconda@v3
46+
with:
47+
miniforge-version: latest
48+
python-version: ${{ matrix.python-version }}
49+
50+
- if: matrix.os == 'macos-latest'
51+
name: Install pytorch and healpy with conda on MacOS
52+
# Avoid OpenMP runtime incompatibility when using PyPI wheels
53+
# https://github.com/healpy/healpy/issues/1012
54+
run: conda install pytorch healpy
4255

43-
- name: Set up Python ${{ matrix.python-version }}
56+
- if: matrix.os != 'macos-latest'
57+
name: Set up Python ${{ matrix.python-version }}
4458
uses: actions/setup-python@v5
4559
with:
4660
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)