Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 20, 2024
1 parent c76bbc0 commit 1b9e114
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,43 +48,42 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
packages: |
scipy matplotlib cython PyYAML dill coverage pytest pandas mpi4py openmpi

- name: Install mpi
if: matrix.pydist != 'ANACONDA'
uses: mpi4py/setup-mpi@v1
with:
mpi: openmpi

- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
${{ github.workspace }}/packages/data/planck_supp_data_and_covmats
${{ github.workspace }}/packages/data/bao_data
${{ github.workspace }}/packages/data/sn_data
${{ github.workspace }}/packages/data/des_data
${{ github.workspace }}/packages/data/planck_2018_pliklite_native
key: ${{ runner.os }}-build-${{ matrix.python-version }}}
# - name: Cache dependencies
# uses: actions/cache@v2
# with:
# path: |
# ${{ github.workspace }}/packages/data/planck_supp_data_and_covmats
# ${{ github.workspace }}/packages/data/bao_data
# ${{ github.workspace }}/packages/data/sn_data
# ${{ github.workspace }}/packages/data/des_data
# ${{ github.workspace }}/packages/data/planck_2018_pliklite_native
# key: ${{ runner.os }}-build-${{ matrix.python-version }}}

- name: Install dependencies (pip)
if: matrix.pydist != 'ANACONDA'
run: |
pip install mpi4py -i https://pypi.anaconda.org/mpi4py/simple
pip install -r requirements.txt pytest-xdist pytest-cov flaky matplotlib dill coverage flake8 iminuit numba
pip install -r requirements.txt pytest-xdist pytest-cov flaky matplotlib dill coverage flake8 iminuit numba camb
- name: Install dependencies (Anaconda)
if: matrix.pydist == 'ANACONDA'
run: |
conda install scipy matplotlib cython PyYAML dill coverage pytest pandas mpi4py openmpi
conda install -c conda-forge iminuit
pip install -r requirements.txt flake8 flaky pytest-xdist pytest-cov camb
- name: Run flake8
run: |
flake8 cobaya --select=E713,E704,E703,E714,E741,E10,E11,E20,E22,E23,E25,E27,E301,E302,E304,E9,F405,F406,F5,F6,F7,F8,W1,W2,W3,W6 --show-source --statistics
- name: Run tests
- name: Run cobaya install and tests
run: |
export COBAYA_PACKAGES_PATH="../packages"
coverage run --parallel-mode -m cobaya.install polychord --debug
Expand All @@ -102,7 +101,7 @@ jobs:
pip install ./example_external_likelihood --quiet
coverage run --parallel-mode -m unittest test_package.tests.test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1


2 changes: 1 addition & 1 deletion cobaya/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def pip_install(packages, upgrade=False, logger=None, options=(), **kwargs):
"""
if hasattr(packages, "split"):
packages = [packages]
cmd = [sys.executable, '-m', 'pip', 'install']
cmd = [sys.executable, '-m', 'pip', 'install', '-q']
if upgrade:
cmd += ['--upgrade']
cmd += list(options)
Expand Down

0 comments on commit 1b9e114

Please sign in to comment.