File tree 3 files changed +63
-1
lines changed
3 files changed +63
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+ on :
3
+ release :
4
+ types : [published]
5
+ push :
6
+ branches : [master]
7
+ tags : ['**']
8
+ pull_request :
9
+ branches : [master]
10
+ jobs :
11
+ test :
12
+ defaults : {run: {shell: 'bash -el {0}'}}
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ include :
17
+ - python-version : 3.8
18
+ numpy-version : 1.21
19
+ - python-version : ' 3.10'
20
+ numpy-version : 1.24
21
+ steps :
22
+ - uses : actions/checkout@v4
23
+ with : {fetch-depth: 0, submodules: recursive}
24
+ - uses : conda-incubator/setup-miniconda@v3
25
+ with :
26
+ python-version : ${{ matrix.python-version }}
27
+ - name : build
28
+ run : |
29
+ cmake -S . -B ./build_proj -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_MATLAB_WRAPPER=OFF -DBUILD_PYTHON_WRAPPER=ON -DBUILD_CUDA=OFF -DCMAKE_INSTALL_PREFIX=./install
30
+ cmake --build ./build_proj --target install
31
+ pip install ./src/Python
32
+ - name : test
33
+ run : PYTHONPATH=./src/Python python -m unittest discover ./test
34
+ conda :
35
+ defaults : {run: {shell: 'bash -el {0}'}}
36
+ runs-on : ubuntu-latest
37
+ strategy :
38
+ matrix :
39
+ python-version : [3.9]
40
+ numpy-version : [1.22]
41
+ steps :
42
+ - uses : actions/checkout@v4
43
+ with : {fetch-depth: 0, submodules: recursive}
44
+ - uses : conda-incubator/setup-miniconda@v3
45
+ with :
46
+ python-version : ${{ matrix.python-version }}
47
+ mamba-version : " *"
48
+ channels : conda-forge
49
+ - name : conda build & test
50
+ working-directory : recipe
51
+ run : |
52
+ conda install boa
53
+ conda mambabuild . -c conda-forge -c ccpi --python=${{ matrix.python-version }} --numpy=${{ matrix.numpy-version }} --output-folder .
54
+ - name : Upload artifact of the conda package
55
+ uses : actions/upload-artifact@v4
56
+ with :
57
+ name : ccpi-regulariser-package
58
+ path : recipe/linux-64/ccpi-regulariser*
59
+ pass :
60
+ needs : [test, conda]
61
+ runs-on : ubuntu-latest
62
+ steps : [{run: echo success}]
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ requirements:
26
26
- pip
27
27
- vc 14 # [win]
28
28
- cmake
29
- - ripgrep
30
29
31
30
run :
32
31
- {{ pin_compatible('numpy', min_pin='x.x', max_pin='x.x') }}
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ include = ["ccpi", "ccpi.*"]
9
9
[project ]
10
10
version = " 24.0.0"
11
11
name = " ccpi-regulariser"
12
+ dependencies = [" numpy" ]
You can’t perform that action at this time.
0 commit comments