Skip to content

Commit

Permalink
Merge pull request #217 from cta-observatory/update_ci_config
Browse files Browse the repository at this point in the history
Update CI configuration
  • Loading branch information
morcuended authored Mar 19, 2024
2 parents b0c171d + 77d2ff1 commit fe53b2f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- master
- main
tags:
- '**'
pull_request:
Expand All @@ -26,7 +26,7 @@ jobs:
shell: bash -leo pipefail {0}

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

Expand All @@ -37,10 +37,11 @@ jobs:
sed -i -e "s/- python=.*/- python=$PYTHON_VERSION/g" environment.yml
- name: Create and activate env
uses: mamba-org/provision-with-micromamba@v14
uses: mamba-org/setup-micromamba@v1
with:
environment-name: lstio
environment-file: environment.yml
environment-name: lstio
init-shell: bash
cache-downloads: true

- name: Install
Expand Down Expand Up @@ -68,4 +69,7 @@ jobs:
run: |
pytest --cov=ctapipe_io_lst --cov-report=xml
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# make sure we have version info
- run: git fetch --tags

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.11"

- name: Install dependencies
run: |
python --version
pip install -U pip setuptools wheel setuptools_scm[toml]
python setup.py sdist bdist_wheel
pip install -U build
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ctapipe_io_lst [![Build Status](https://github.com/cta-observatory/ctapipe_io_lst/workflows/CI/badge.svg?branch=master)](https://github.com/cta-observatory/ctapipe_io_lst/actions?query=workflow%3ACI+branch%3Amaster)
# ctapipe_io_lst [![Build Status](https://github.com/cta-observatory/ctapipe_io_lst/workflows/CI/badge.svg?branch=main)](https://github.com/cta-observatory/ctapipe_io_lst/actions?query=workflow%3ACI+branch%3Amain)

EventSource Plugin for ctapipe, able to read LST zfits files
and calibration them to R1 as needed for ctapipe tools.
Expand Down

0 comments on commit fe53b2f

Please sign in to comment.