Skip to content

Issue/150/box matching #652

Issue/150/box matching

Issue/150/box matching #652

Workflow file for this run

name: Build and Check
on:
push:
branches:
- main
pull_request:
jobs:
build-gcc-ubuntu:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
installer-url: 'https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh'
- name: Install prereq using conda
run: |
conda install -c conda-forge gobject-introspection pygobject python_abi=3.9=3_cp39
echo "$CONDA/bin" >> $GITHUB_PATH
- name: Install prereq using pip
run: |
pip install -r requirements.txt
- name: Install the package
run: |
pip install .
- 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
pip install .
- name: Install healsparse from source
run: |
git clone https://github.com/LSSTDESC/healsparse
cd healsparse
pip install .
- name: Run the unit tests
run: |
pip install pytest pytest-cov
pytest tests/ --cov=clevar/
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