Skip to content

Commit

Permalink
Merge pull request #909 from LSSTDESC/ghw_lint
Browse files Browse the repository at this point in the history
Lint check before installing dependencies
  • Loading branch information
nikfilippas committed Nov 16, 2021
2 parents a74c666 + 86e9bc0 commit c428b64
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,20 @@ jobs:
./uninstall_homebrew.sh -f -q >& /dev/null
rm -f uninstall_homebrew.sh
- name: lint
run: |
conda install flake8
flake8 pyccl
flake8 --exclude=data benchmarks
if [[ `grep "$(printf '\t')" pyccl/*.py` != "" ]]; then
exit 1
fi
- name: install deps
run: |
conda install \
pip \
numpy nose coveralls flake8 pyyaml gsl fftw cmake swig scipy \
numpy nose coveralls pyyaml gsl fftw cmake swig scipy \
compilers pkg-config setuptools_scm pytest pandas pytest-cov \
cython "camb>=1.3" isitgr traitlets fast-pt
Expand All @@ -74,14 +83,6 @@ jobs:
env:
MATRIX_OS: ${{ matrix.os }}

- name: lint
run: |
flake8 pyccl
flake8 --exclude=data benchmarks
if [[ `grep "$(printf '\t')" pyccl/*.py` != "" ]]; then
exit 1
fi
- name: build CCL
run: |
python setup.py build
Expand Down

0 comments on commit c428b64

Please sign in to comment.