-
Notifications
You must be signed in to change notification settings - Fork 26
82 lines (72 loc) · 1.81 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: continuous-integration
on:
push:
branches:
- main
- master
- releases/*
pull_request: null
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
py:
- 3.8
CC:
- gcc
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.py }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- name: Install GSL, FFTW, fitsio
run: |
sudo -H apt-get install libgsl-dev libfftw3-dev libcfitsio-dev
- name: Install python dependencies
run: |
python -m pip install -U pip
pip install -U numpy
pip install -U scipy
pip install -U healpy
pip install -U ducc0
pip install -U flake8
pip install -U pytest
pip install -U pytest-cov
pip install -U coveralls
- name: Flake
run: |
flake8 pymaster --exclude=nmtlib.py
flake8 test --exclude=benchmarks
- name: Build NaMaster
run: |
python setup.py install
- name: C tests
run: |
make check
- name: Python tests
run: |
pytest -vv pymaster --cov=pymaster
# - name: Clean install with threads
# run: |
# pip uninstall pymaster -y
# rm _deps/lib/libnmt.a
# python setup.py install --enable-fftw-pthreads --disable-openmp
#
# - name: C tests with threads
# run: |
# make check
#
# - name: Python tests with threads
# run: |
# pytest -vv pymaster
#
- name: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github