-
Notifications
You must be signed in to change notification settings - Fork 15
67 lines (57 loc) · 1.5 KB
/
testing.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
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 pyccl cython gsl
pip install gsl
pip install cobaya
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 classy_sz
run: |
if [[ ${MATRIX_OS} == "macos-latest" ]]; then
. ci_scripts/install_class_sz_osx.sh
else
. ci_scripts/install_class_sz_linux.sh
fi
python -c "import classy_sz; print(classy_sz)"
env:
MATRIX_OS: ${{ matrix.os }}
- name: install
run: |
pip install .
- name: Unit tests
run: |
pytest -vv soliket
env:
PYTEST_ADDOPTS: "--color=yes"