File tree Expand file tree Collapse file tree 1 file changed +47
-17
lines changed Expand file tree Collapse file tree 1 file changed +47
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : github-CI
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+ workflow_dispatch :
4
11
5
12
jobs :
6
- build :
7
-
13
+ test :
8
14
runs-on : ${{ matrix.os }}
9
15
strategy :
16
+ fail-fast : false
10
17
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"
14
31
15
32
steps :
33
+
16
34
- 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
20
37
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
+
26
40
- 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
You can’t perform that action at this time.
0 commit comments