Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update outdated versions of CI CD actions #1257

Merged
merged 5 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}