Skip to content

Commit fe53b2f

Browse files
authored
Merge pull request #217 from cta-observatory/update_ci_config
Update CI configuration
2 parents b0c171d + 77d2ff1 commit fe53b2f

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

.github/workflows/ci.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
tags:
88
- '**'
99
pull_request:
@@ -26,7 +26,7 @@ jobs:
2626
shell: bash -leo pipefail {0}
2727

2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
3232

@@ -37,10 +37,11 @@ jobs:
3737
sed -i -e "s/- python=.*/- python=$PYTHON_VERSION/g" environment.yml
3838
3939
- name: Create and activate env
40-
uses: mamba-org/provision-with-micromamba@v14
40+
uses: mamba-org/setup-micromamba@v1
4141
with:
42-
environment-name: lstio
4342
environment-file: environment.yml
43+
environment-name: lstio
44+
init-shell: bash
4445
cache-downloads: true
4546

4647
- name: Install
@@ -68,4 +69,7 @@ jobs:
6869
run: |
6970
pytest --cov=ctapipe_io_lst --cov-report=xml
7071
71-
- uses: codecov/codecov-action@v1
72+
- uses: codecov/codecov-action@v4
73+
with:
74+
fail_ci_if_error: true
75+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/deploy.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

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

1717
- name: Set up Python
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1919
with:
20-
python-version: 3.8
20+
python-version: "3.11"
2121

2222
- name: Install dependencies
2323
run: |
2424
python --version
25-
pip install -U pip setuptools wheel setuptools_scm[toml]
26-
python setup.py sdist bdist_wheel
25+
pip install -U build
26+
python -m build
2727
2828
- name: Publish package
29-
uses: pypa/gh-action-pypi-publish@master
29+
uses: pypa/gh-action-pypi-publish@release/v1
3030
with:
3131
user: __token__
3232
password: ${{ secrets.pypi_password }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 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)
1+
# 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)
22

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

0 commit comments

Comments
 (0)