Skip to content

add unit test for lite likelihood #124

add unit test for lite likelihood

add unit test for lite likelihood #124

Workflow file for this run

name: Unit test
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Brew packages
if: matrix.os == 'macos-latest'
run: |
set -x
sudo ln -s /usr/local/bin/gfortran-11 /usr/local/bin/gfortran
gfortran --version
- name: Install dependencies via pip
run: |
python -m pip install --upgrade pip
pip install .
- name: Unit tests
run: |
pip install camb
python -m unittest planck_2020_hillipop.tests.test_hillipop