Skip to content

Commit a753508

Browse files
authored
Merge pull request #1 from benlandrum/benlandrum-ci
Use CI changes from dalcinl/cython3
2 parents de2212f + 52efcba commit a753508

File tree

1 file changed

+47
-17
lines changed

1 file changed

+47
-17
lines changed

.github/workflows/main.yml

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,59 @@
11
name: github-CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
411

512
jobs:
6-
build:
7-
13+
test:
814
runs-on: ${{ matrix.os }}
915
strategy:
16+
fail-fast: false
1017
matrix:
11-
os: [ubuntu-latest, macOS-latest]
12-
python-version: ["3.7", "3.8", "3.9", "3.10"]
13-
name: Python ${{ matrix.python-version }} example
18+
os:
19+
- ubuntu-latest
20+
- macos-latest
21+
mpi:
22+
- mpich
23+
- openmpi
24+
python-version:
25+
- "3.7"
26+
- "3.8"
27+
- "3.9"
28+
- "3.10"
29+
- "3.11"
30+
- "3.12-dev"
1431

1532
steps:
33+
1634
- 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
35+
36+
- uses: actions/setup-python@v4
2037
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
38+
python-version: ${{ matrix.python-version }}
39+
2640
- run: |
27-
conda config --set always_yes yes
28-
conda install -n root conda-build numpy fftw
29-
conda build ./conf
41+
# Install fftw
42+
case $(uname) in
43+
Linux)
44+
sudo apt update && sudo apt install -y -q fftw-dev
45+
;;
46+
Darwin)
47+
brew install fftw
48+
;;
49+
esac
50+
51+
- run: python -m pip install -U pip build
52+
53+
- run: python -m build
54+
55+
- uses: mpi4py/setup-mpi@v1
56+
with:
57+
mpi: ${{ matrix.mpi }}
58+
59+
- run: pip install -vvv dist/mpi4py_fft-*.whl

0 commit comments

Comments
 (0)