Skip to content

version check

version check #1721

Workflow file for this run

name: Testing
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.py }}
auto-update-conda: true
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
- name: install reqs
run: |
conda install pip compilers pytest pytest-cov pyccl cython
pip install cobaya nemo-sz
env:
MATRIX_OS: ${{ matrix.os }}
- name: Install classy
run: |
if [[ ${MATRIX_OS} == "macos-latest" ]]; then
. ci_scripts/install_class_osx.sh
else
. ci_scripts/install_class_linux.sh
fi
python -c "import classy; print(classy)"
env:
MATRIX_OS: ${{ matrix.os }}
- name: install
run: |
pip install .
- name: Unit tests
run: |
pytest -vv soliket --cov=soliket --cov-report=xml:coverage.xml --cov-config=setup.cfg
env:
PYTEST_ADDOPTS: "--color=yes"
- name: Report Coverage (codecov)
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v2