-
Notifications
You must be signed in to change notification settings - Fork 20
63 lines (60 loc) · 1.68 KB
/
build_check.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
name: Build and Check
on:
push:
branches:
- main
pull_request:
jobs:
build-gcc-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2
- name: Install prereq using conda
run: |
echo "$CONDA/bin" >> $GITHUB_PATH
conda info
conda install -c conda-forge gobject-introspection pygobject
- name: Install prereq using pip
run: |
pip install -r requirements.txt
- name: Install the package
run: |
pip install .
- name: Install NumCosmo from conda-forge
run: |
conda install -c conda-forge numcosmo
- name: Install cluster_toolkit from source
run: |
git clone https://github.com/tmcclintock/cluster_toolkit.git
cd cluster_toolkit
pip install .
- name: Install CCL from source
run: |
conda install -c conda-forge cmake swig
git clone https://github.com/LSSTDESC/CCL
cd CCL
git checkout v3.0.0
pip install .
- name: Analysing the code with pylint
run: |
pip install pylint
pylint clmm
- name: Run the unit tests
run: |
pip install pytest pytest-cov
pytest tests/ --ignore=cluster_toolkit/tests --cov=clmm/
env:
DISPLAY: test
- name: Install Sphinx prereq
run: |
conda install -c conda-forge sphinx sphinx_rtd_theme nbconvert pandoc ipython ipython_genutils
- name: Run the docs
run: |
make -C docs/ html
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install coveralls
coveralls --service=github