Skip to content

Commit

Permalink
incorrect syntax in ci.yml (#119)
Browse files Browse the repository at this point in the history
* incorrect syntax in ci.yml

* typo

* ci syntax

* CI does not like comments

* fix lstchain version

* install lstchain via pip

* doble = for lstchain version in pip....

* add codecov to CI

* take out requirements.txt file
  • Loading branch information
garciagenrique authored Jul 6, 2021
1 parent cc195d6 commit ffca977
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,22 @@ jobs:
. $CONDA/etc/profile.d/conda.sh
conda config --set always_yes yes --set changeps1 no
sed -i -e "s/- python=.*/- python=$PYTHON_VERSION/g" environment.yml
echo "Creating conda env"
conda env create -n ci -f environment.yml
conda activate ci
# echo "Installing additional pip packages"
# we install ctapipe using pip to be able to select any commit, e.g. the current master
echo "Installing additional pip packages"
pip install \
# "git+https://github.com/cta-observatory/ctapipe@$CTAPIPE_VERSION" \
pytest-cov
echo "pip install ."
pip install .
- name: Tests
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate ci
pytest -cov -cov-report=xml lstmcpipe
pytest --cov --cov-report=xml lstmcpipe
- uses: codecov/codecov-action@v1
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
lstMCpipe |CI|
lstMCpipe |CI| |coverage|
=========================

.. |CI| image:: https://github.com/cta-observatory/lstmcpipe/workflows/CI/badge.svg?branch=master
:target: https://github.com/cta-observatory/lstmcpipe/actions?query=workflow%3ACI
.. |coverage| image:: https://codecov.io/gh/cta-observatory/lstmcpipe/branch/master/graph/badge.svg
:target: https://codecov.io/gh/cta-observatory/lstmcpipe

Scripts to ease the reduction of MC data on the LST cluster at La Palma.

Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ dependencies:
- astropy~=4.2
- pip
- ctapipe~=0.10.5
- lstchain==0.7.3
- pip:
# - pytest_runner
# - pytest-ordering
- ctapipe_io_lst~=0.9.2
# - ctaplot
- ctapipe_io_lst~=0.9.2
- lstchain==0.7.3
- pyirf~=0.4.0
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

0 comments on commit ffca977

Please sign in to comment.