From 83ac4f61241dec78a1d2ecab9ee77e8523762d10 Mon Sep 17 00:00:00 2001 From: Daniel Morcuende Date: Wed, 29 May 2024 10:37:02 +0200 Subject: [PATCH 1/5] update codecov version in CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d522a61c5..7d66c711f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,7 @@ 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 From b7141a31cb4005cca3971bfb2c23caf9e2799e9f Mon Sep 17 00:00:00 2001 From: Daniel Morcuende Date: Wed, 29 May 2024 11:02:57 +0200 Subject: [PATCH 2/5] remove gcov outdated option --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d66c711f5..ceb8f09818 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,9 +91,6 @@ jobs: pytest -n auto --dist loadscope --cov --cov-report=xml -m 'private_data or not private_data' lstchain - uses: codecov/codecov-action@v4 - with: - # disable gcov, not needed - functionalities: gcov docs: needs: pyflakes From 011c256fb3c76b617cba7df7a51c1b3c055e1ff5 Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Wed, 29 May 2024 13:35:09 +0200 Subject: [PATCH 3/5] Add codecov token and fail ci if error flag --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ceb8f09818..2cbf0395eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,10 @@ jobs: pytest -n auto --dist loadscope --cov --cov-report=xml -m 'private_data or not private_data' lstchain - uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} + docs: needs: pyflakes From a4a767e78a9683e4bba08a6ce15dc368899ac319 Mon Sep 17 00:00:00 2001 From: Daniel Morcuende Date: Wed, 29 May 2024 18:39:15 +0200 Subject: [PATCH 4/5] update action versions --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cbf0395eb..c5ab878a19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ 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 @@ -35,7 +35,7 @@ jobs: defaults: run: - shell: bash -el {0} + shell: bash -leo pipefail {0} strategy: matrix: @@ -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: @@ -105,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 From 8372941e163d9f822f635322399f9bbe6576770d Mon Sep 17 00:00:00 2001 From: Daniel Morcuende Date: Thu, 30 May 2024 13:25:29 +0200 Subject: [PATCH 5/5] update outdated action versions in CI CD --- .github/workflows/ci.yml | 2 +- .github/workflows/deploy.yml | 12 ++++++------ .github/workflows/release_drafter.yml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5ab878a19..b5907dba13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.11 - name: pyflakes run: | diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7eb170545a..7e7fe8c69b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy +name: Deploy to PyPI on: push: @@ -9,14 +9,14 @@ 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: | @@ -24,8 +24,8 @@ jobs: 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 }} diff --git a/.github/workflows/release_drafter.yml b/.github/workflows/release_drafter.yml index decfe7c17e..89fa6a894c 100644 --- a/.github/workflows/release_drafter.yml +++ b/.github/workflows/release_drafter.yml @@ -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 }}