From 7f3dbfd85ffb350bf4af7c7ad650e4ca0051151e Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 15:38:22 +0200 Subject: [PATCH 01/17] Create a PR on caracal with the latest release of stimela --- .github/workflows/python-dependants.yml | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/python-dependants.yml diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml new file mode 100644 index 00000000..5db37a77 --- /dev/null +++ b/.github/workflows/python-dependants.yml @@ -0,0 +1,54 @@ +# This workflow will install Python dependencies, creat a PR to caracal-pipeline after a successful version release +name: Python Dependants + +# Only trigger, when the publish workflow succeeded +#on: +# workflow_run: +# workflows: ["Upload Python Package"] +# types: +# - completed +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Git clone caracal + run: git clone git+https://github.com/caracal-pipeline/caracal.git ../caracal/ + - uses: actions/checkout@v4 + - name: Make changes to pull request + run: | + cd ../caracal/ + poetry add stimela@latest --lock + git add poetry.lock pyproject.toml + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: Update report + committer: GitHub + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + signoff: false + branch: readthedocs + delete-branch: true + title: 'Read the docs updates' + body: | + Update report + - Auto-generated by caracal + labels: | + automated pr + assignees: athanaseus + reviewers: sphemakh + draft: false From 1b5da38af9893e7951431fe7326d861afe46600d Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 15:42:01 +0200 Subject: [PATCH 02/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 5db37a77..e7e31605 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -1,4 +1,4 @@ -# This workflow will install Python dependencies, creat a PR to caracal-pipeline after a successful version release +# This workflow will install Python dependencies and create a PR to caracal-pipeline after a successful version release name: Python Dependants # Only trigger, when the publish workflow succeeded @@ -25,7 +25,7 @@ jobs: with: python-version: '3.x' - name: Git clone caracal - run: git clone git+https://github.com/caracal-pipeline/caracal.git ../caracal/ + run: git clone https://github.com/caracal-pipeline/caracal.git ../caracal/ - uses: actions/checkout@v4 - name: Make changes to pull request run: | From 669e5c9ebd0af462f50a931f55d4bd5a9d16af36 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 15:49:31 +0200 Subject: [PATCH 03/17] Add latest poetry --- .github/workflows/python-dependants.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index e7e31605..f152a438 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -13,6 +13,9 @@ on: pull_request: branches: [ master ] +env: + POETRY_VERSION: 1.7.1 + jobs: deploy: @@ -24,6 +27,16 @@ jobs: uses: actions/setup-python@v2 with: python-version: '3.x' + - name: Cache Installations + id: cache-installs + uses: actions/cache@v3 + with: + path: ~/.local + key: install-${{ env.INSTALL_CACHE_HASH }}-3 + - name: Install Poetry + if: steps.cache-installs.outputs.cache-hit != 'true' + run: | + curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }} - name: Git clone caracal run: git clone https://github.com/caracal-pipeline/caracal.git ../caracal/ - uses: actions/checkout@v4 @@ -32,6 +45,8 @@ jobs: cd ../caracal/ poetry add stimela@latest --lock git add poetry.lock pyproject.toml + - name: Test poetry + run: poetry --version - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v5 @@ -43,10 +58,10 @@ jobs: signoff: false branch: readthedocs delete-branch: true - title: 'Read the docs updates' + title: 'Stimela dependency update' body: | Update report - - Auto-generated by caracal + - Auto-generated by stimela-classic labels: | automated pr assignees: athanaseus From aac5ea94342a2107a33d2c9be5a90fcd158b9517 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 15:52:51 +0200 Subject: [PATCH 04/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index f152a438..86713b1e 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -37,16 +37,16 @@ jobs: if: steps.cache-installs.outputs.cache-hit != 'true' run: | curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }} + - name: Test poetry + run: poetry --version - name: Git clone caracal - run: git clone https://github.com/caracal-pipeline/caracal.git ../caracal/ + run: git clone https://github.com/caracal-pipeline/caracal.git@master ../caracal/ - uses: actions/checkout@v4 - name: Make changes to pull request run: | cd ../caracal/ poetry add stimela@latest --lock git add poetry.lock pyproject.toml - - name: Test poetry - run: poetry --version - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v5 From 63c1d060063b4b5b6e62b0eb2b417ab4fe411b5d Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 15:57:42 +0200 Subject: [PATCH 05/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 86713b1e..2e217942 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -40,7 +40,7 @@ jobs: - name: Test poetry run: poetry --version - name: Git clone caracal - run: git clone https://github.com/caracal-pipeline/caracal.git@master ../caracal/ + run: git clone https://github.com/caracal-pipeline/caracal.git ../caracal/ - uses: actions/checkout@v4 - name: Make changes to pull request run: | @@ -56,7 +56,7 @@ jobs: committer: GitHub author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> signoff: false - branch: readthedocs + branch: deps101 delete-branch: true title: 'Stimela dependency update' body: | From 18dc569b05d1f6c7255bdde42a1628d4a4731305 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 16:02:04 +0200 Subject: [PATCH 06/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 2e217942..0f67b170 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -57,6 +57,7 @@ jobs: author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> signoff: false branch: deps101 + base: ${{ github.head_ref }} delete-branch: true title: 'Stimela dependency update' body: | From 862665c0fc6408eb7ed3b8fdd204493f621d6b68 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 16:05:41 +0200 Subject: [PATCH 07/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 0f67b170..34e0b844 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -57,7 +57,7 @@ jobs: author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> signoff: false branch: deps101 - base: ${{ github.head_ref }} + base: master delete-branch: true title: 'Stimela dependency update' body: | From 15ded09993aa3c955dc721f8bcf0794fad1b25ba Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 16:14:43 +0200 Subject: [PATCH 08/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 34e0b844..6665e797 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -8,8 +8,6 @@ name: Python Dependants # types: # - completed on: - push: - branches: [ master ] pull_request: branches: [ master ] @@ -46,14 +44,15 @@ jobs: run: | cd ../caracal/ poetry add stimela@latest --lock + git diff git add poetry.lock pyproject.toml - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} - commit-message: Update report - committer: GitHub + commit-message: Update deps + committer: Athanaseus Javas Ramaila author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> signoff: false branch: deps101 From d170a35f9af6c804437316492e7f16fb00cb3abd Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 30 Jan 2024 16:29:26 +0200 Subject: [PATCH 09/17] updates --- .github/workflows/python-dependants.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 6665e797..3c2d6917 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -39,6 +39,7 @@ jobs: run: poetry --version - name: Git clone caracal run: git clone https://github.com/caracal-pipeline/caracal.git ../caracal/ + - uses: actions/checkout@v4 - name: Make changes to pull request run: | @@ -46,6 +47,7 @@ jobs: poetry add stimela@latest --lock git diff git add poetry.lock pyproject.toml + - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v5 From 8f08a9d107f4912da79ed1f9d37fc14f8cc4f928 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Fri, 16 Feb 2024 08:55:38 +0200 Subject: [PATCH 10/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 3c2d6917..e99334ea 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v2 with: @@ -40,7 +40,6 @@ jobs: - name: Git clone caracal run: git clone https://github.com/caracal-pipeline/caracal.git ../caracal/ - - uses: actions/checkout@v4 - name: Make changes to pull request run: | cd ../caracal/ @@ -50,7 +49,7 @@ jobs: - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update deps From 97ae72bf8eb72ec5ae84ae96983523a03d7109a3 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Fri, 16 Feb 2024 09:06:41 +0200 Subject: [PATCH 11/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index e99334ea..a5f4222f 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -40,6 +40,7 @@ jobs: - name: Git clone caracal run: git clone https://github.com/caracal-pipeline/caracal.git ../caracal/ + - uses: actions/checkout@v4 - name: Make changes to pull request run: | cd ../caracal/ From 0c9dd3928024c2a9b4d1ad389a3cbc4ff2c506c3 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 20 Feb 2024 11:38:37 +0200 Subject: [PATCH 12/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index a5f4222f..d211197e 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -51,6 +51,8 @@ jobs: - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v6 + run: | + cd ../caracal/ with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update deps From 838e41287eb2ba7c497146165e72b83ea68d9292 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 20 Feb 2024 11:43:24 +0200 Subject: [PATCH 13/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index d211197e..1cb21dfc 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -50,9 +50,7 @@ jobs: - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@v6 - run: | - cd ../caracal/ + uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update deps From 0d811bc129ee0ee474c4cb93012c278953da8942 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 20 Feb 2024 11:50:51 +0200 Subject: [PATCH 14/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 1cb21dfc..e63d5374 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -57,6 +57,7 @@ jobs: committer: Athanaseus Javas Ramaila author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> signoff: false + path: ../caracal/ branch: deps101 base: master delete-branch: true From 200b8d0d59a0271bc66e72e4dfdc3d066022c711 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 20 Feb 2024 11:54:28 +0200 Subject: [PATCH 15/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index e63d5374..6b8151e3 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -55,7 +55,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update deps committer: Athanaseus Javas Ramaila - author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + author: Athanaseus Javas Ramaila signoff: false path: ../caracal/ branch: deps101 From d05616718e8f7941b619f37f04e47c437fec4542 Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Tue, 20 Feb 2024 15:34:20 +0200 Subject: [PATCH 16/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index 6b8151e3..c030e714 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -54,8 +54,8 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update deps - committer: Athanaseus Javas Ramaila - author: Athanaseus Javas Ramaila + committer: GitHub + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> signoff: false path: ../caracal/ branch: deps101 From 767ff4ea05fabc68ceb43b8858a7fae14a97b4fe Mon Sep 17 00:00:00 2001 From: Athanaseus Javas Ramaila Date: Fri, 23 Feb 2024 08:22:10 +0200 Subject: [PATCH 17/17] Update python-dependants.yml --- .github/workflows/python-dependants.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/python-dependants.yml b/.github/workflows/python-dependants.yml index c030e714..cb1db1c1 100644 --- a/.github/workflows/python-dependants.yml +++ b/.github/workflows/python-dependants.yml @@ -59,7 +59,6 @@ jobs: signoff: false path: ../caracal/ branch: deps101 - base: master delete-branch: true title: 'Stimela dependency update' body: |