Skip to content

Commit 486d6a8

Browse files
committed
CI: Use conda-incubator/setup-miniconda action
1 parent 1761376 commit 486d6a8

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,28 @@ jobs:
77

88
runs-on: ${{ matrix.os }}
99
strategy:
10+
fail-fast: false
1011
matrix:
1112
os: [ubuntu-latest, macos-latest]
1213
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
13-
name: Python ${{ matrix.python-version }} example
14+
name: Python ${{ matrix.python-version }} example (${{ matrix.os }})
15+
16+
defaults:
17+
run:
18+
shell: bash -el {0}
1419

1520
steps:
21+
1622
- uses: actions/checkout@v3
17-
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
18-
- name: setup-conda
19-
uses: s-weigand/setup-conda@v1
23+
24+
- uses: conda-incubator/setup-miniconda@v2
2025
with:
21-
update-conda: true
22-
python-version: ${{ matrix.python-version }}
23-
conda-channels: anaconda, conda-forge
24-
- run: conda --version
25-
- run: which python
26-
- run: |
27-
conda config --set always_yes yes
28-
conda install -n root conda-build numpy fftw
29-
conda build ./conf
26+
miniforge-variant: Mambaforge
27+
miniforge-version: latest
28+
channel-priority: strict
29+
python-version: ${{ matrix.python-version }}
30+
conda-build-version: '*'
31+
32+
- run: conda install -n root numpy fftw
33+
- run: conda build --python ${{ matrix.python-version }} ./conf
34+
- run: conda install --use-local mpi4py_fft_test

0 commit comments

Comments
 (0)