Skip to content

Commit

Permalink
Updates from add_license branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
aleberti committed Sep 25, 2023
1 parent 9d5925f commit 8c1cf2a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ env:
PYTEST_ADDOPTS: --color=yes

jobs:
pyflakes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: pyflakes
run: |
pip install pyflakes
pyflakes magicctapipe
tests:
runs-on: ubuntu-latest
strategy:
Expand All @@ -16,12 +31,12 @@ jobs:
ctapipe-version: [v0.12.0]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -43,14 +58,6 @@ jobs:
pip install -e .
git describe --tags
- name: Static codechecks
# need to use a login shell for the conda setup to work
shell: bash -leo pipefail {0}
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate ci
pyflakes magicctapipe
#- name: Download test data
# env:
# TEST_DATA_USER: ${{ secrets.test_data_user }}
Expand All @@ -71,4 +78,4 @@ jobs:
coverage run -m pytest -v
coverage xml
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v3
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- pip
- black
- nbsphinx
- numpy=1.21
- ctapipe=0.12
- gammapy=0.19.0
- cython
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ install_requires=
ctaplot~=0.5.5
gammapy~=0.19.0
uproot~=4.1
numpy<1.22.0a0
joblib
pandas
pyirf~=0.6.0
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'ctaplot~=0.5.5',
'gammapy~=0.19.0',
'uproot~=4.1',
'numpy<1.22.0a0',
'joblib',
'pandas',
'pyirf~=0.6.0',
Expand Down

0 comments on commit 8c1cf2a

Please sign in to comment.