Skip to content

Commit

Permalink
Merge pull request #1257 from cta-observatory/update-codecov-version
Browse files Browse the repository at this point in the history
Update outdated versions of CI CD actions
  • Loading branch information
maxnoe authored Jun 3, 2024
2 parents 50f9419 + 8372941 commit 54d3963
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- uses: actions/checkout@v4

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

- name: pyflakes
run: |
Expand All @@ -35,7 +35,7 @@ jobs:

defaults:
run:
shell: bash -el {0}
shell: bash -leo pipefail {0}

strategy:
matrix:
Expand All @@ -55,10 +55,10 @@ jobs:
sed -i -e "s/- python=.*/- python=$PYTHON_VERSION/g" environment.yml
- name: Mamba setup
uses: mamba-org/provision-with-micromamba@v14
uses: mamba-org/setup-micromamba@v1
with:
environment-name: "lst-dev"
environment-file: environment.yml
cache-downloads: true

- name: Install dependencies
env:
Expand Down Expand Up @@ -90,10 +90,11 @@ jobs:
run: |
pytest -n auto --dist loadscope --cov --cov-report=xml -m 'private_data or not private_data' lstchain
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
# disable gcov, not needed
functionalities: gcov
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}


docs:
needs: pyflakes
Expand All @@ -104,7 +105,7 @@ jobs:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Deploy to PyPI

on:
push:
Expand All @@ -9,23 +9,23 @@ jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- 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 build
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
4 changes: 2 additions & 2 deletions .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 54d3963

Please sign in to comment.