From 155773425c94fd39c0545e009e16ecfd08443a6c Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:18:32 -0400 Subject: [PATCH 01/18] Working changes to pipeline --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 11143aa..5ff6895 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -6,5 +6,5 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: python -m pip install --upgrade pip && pip install poetry + - run: sudo apt-get install pipx && pipx install poetry - run: poetry install && poetry run pytest -v -- 2.20.1 From 1df57ce5b1b41180758706ba07b6dbb4486a9749 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:21:02 -0400 Subject: [PATCH 02/18] Update poetry install instructions --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 5ff6895..a1be283 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -6,5 +6,5 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: sudo apt-get install pipx && pipx install poetry + - run: curl -sSL https://install.python-poetry.org | python3 - - run: poetry install && poetry run pytest -v -- 2.20.1 From f32ef327c606239086df542f6442b6beb216bb8c Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:23:06 -0400 Subject: [PATCH 03/18] Correct poetry paths --- .gitea/workflows/tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index a1be283..ad9df42 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -6,5 +6,5 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: curl -sSL https://install.python-poetry.org | python3 - - - run: poetry install && poetry run pytest -v + - run: pipx install poetry + - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From f1a29a2b2e38367433a3065c6d93369dcca8296a Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:26:10 -0400 Subject: [PATCH 04/18] add clone --- .gitea/workflows/tests.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index ad9df42..65322c2 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -7,4 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - run: pipx install poetry + - name: Check out repository code + uses: actions/checkout@v4 + - run: ls - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From 6b6139839d8796696cb972555a27932eeca715b5 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:30:39 -0400 Subject: [PATCH 05/18] Correct clone syntax --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 65322c2..ddfae5f 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -8,6 +8,6 @@ jobs: steps: - run: pipx install poetry - name: Check out repository code - uses: actions/checkout@v4 + uses: actions/checkout@${{ gitea.ref }} - run: ls - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From 6d8b7e06f84d2dc3f1d3b8e1be93cae5a6e536b8 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:32:31 -0400 Subject: [PATCH 06/18] Try without checkout command --- .gitea/workflows/tests.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index ddfae5f..e2694fc 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -7,7 +7,5 @@ jobs: runs-on: ubuntu-latest steps: - run: pipx install poetry - - name: Check out repository code - uses: actions/checkout@${{ gitea.ref }} - run: ls - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From 6e3ae47c5b9378c84660950655c8de168ab007cb Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:33:12 -0400 Subject: [PATCH 07/18] Debug statement --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index e2694fc..ebf5b62 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -7,5 +7,5 @@ jobs: runs-on: ubuntu-latest steps: - run: pipx install poetry - - run: ls + - run: echo $(ls) - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From e6c843a94bd78f636e3ed83379ed271a63889095 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:37:24 -0400 Subject: [PATCH 08/18] Add back in checkout --- .gitea/workflows/tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index ebf5b62..29c5e97 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -7,5 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - run: pipx install poetry + - name: Check out repository code + uses: actions/checkout@v4 - run: echo $(ls) - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From 143f68fe5ea98c72c0b43449732ca726e7361627 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:40:20 -0400 Subject: [PATCH 09/18] Fix server url --- .gitea/workflows/tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 29c5e97..5aef6cb 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -9,5 +9,7 @@ jobs: - run: pipx install poetry - name: Check out repository code uses: actions/checkout@v4 + with: + github-server-url: "https://www.alexselimov.com/git" - run: echo $(ls) - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From b5a5273a4c737d650cc2009bbd2735845b005db9 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 01:44:31 -0400 Subject: [PATCH 10/18] Fix clone command --- .gitea/workflows/tests.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 5aef6cb..9c7bbbd 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -7,9 +7,6 @@ jobs: runs-on: ubuntu-latest steps: - run: pipx install poetry - - name: Check out repository code - uses: actions/checkout@v4 - with: - github-server-url: "https://www.alexselimov.com/git" + - run: git clone -b {{ gitea.ref }} https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag - run: echo $(ls) - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From c9f0d42abe649eaac1625635dc3d1d1e5b946b99 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 08:52:41 -0400 Subject: [PATCH 11/18] Try a different clone variation --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 9c7bbbd..15077e1 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -7,6 +7,6 @@ jobs: runs-on: ubuntu-latest steps: - run: pipx install poetry - - run: git clone -b {{ gitea.ref }} https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag + - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout {{ gitea.ref }} - run: echo $(ls) - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From 7726c1f1e56c90915079a9c708f57de781cd12bc Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 09:20:33 -0400 Subject: [PATCH 12/18] Fix gitea ref syntax --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 15077e1..44e29af 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -7,6 +7,6 @@ jobs: runs-on: ubuntu-latest steps: - run: pipx install poetry - - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout {{ gitea.ref }} + - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout ${{ gitea.ref }} - run: echo $(ls) - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From 000a1d1f24cded4620cc84fa523b19a2d113d436 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 09:30:34 -0400 Subject: [PATCH 13/18] Fix gitea ref syntax --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 44e29af..a1723ee 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -7,6 +7,6 @@ jobs: runs-on: ubuntu-latest steps: - run: pipx install poetry - - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout ${{ gitea.ref }} + - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout ${{ gitea.ref_name }} - run: echo $(ls) - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From 4ca1dc81a185ad9f4cb7487058fc4c900a423488 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 09:31:56 -0400 Subject: [PATCH 14/18] Fix poetry command --- .gitea/workflows/tests.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index a1723ee..0ed73b2 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -8,5 +8,4 @@ jobs: steps: - run: pipx install poetry - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout ${{ gitea.ref_name }} - - run: echo $(ls) - - run: /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v + - run: cd code_rag && /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v -- 2.20.1 From c9d443f1b2ce4d6532a4a65bc3f09ba265aa32d9 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 09:34:19 -0400 Subject: [PATCH 15/18] Fix environment --- .gitea/workflows/tests.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 0ed73b2..7cfdc3c 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -6,6 +6,7 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: pipx install poetry + - run: pipx install poetry && sudo apt-get install python3-dev -y - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout ${{ gitea.ref_name }} - - run: cd code_rag && /root/.local/bin/poetry install && /root/.local/bin/poetry run pytest -v + - run: cd code_rag && /root/.local/bin/poetry install + - run: /root/.local/bin/poetry run pytest -v -- 2.20.1 From 436a0b73648849c029b13c015508a092751b055d Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 09:34:52 -0400 Subject: [PATCH 16/18] Fix environment --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 7cfdc3c..625eac4 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -6,7 +6,7 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: pipx install poetry && sudo apt-get install python3-dev -y + - run: pipx install poetry && sudo apt-get install python-dev -y - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout ${{ gitea.ref_name }} - run: cd code_rag && /root/.local/bin/poetry install - run: /root/.local/bin/poetry run pytest -v -- 2.20.1 From a25d1586332644f9d97ddcee510678b5d6c3b3c6 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 09:37:30 -0400 Subject: [PATCH 17/18] Update environment install --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 625eac4..941bdaf 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -6,7 +6,7 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - run: pipx install poetry && sudo apt-get install python-dev -y + - run: pipx install poetry && sudo apt-get update &&sudo apt-get install python3-dev -y - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout ${{ gitea.ref_name }} - run: cd code_rag && /root/.local/bin/poetry install - run: /root/.local/bin/poetry run pytest -v -- 2.20.1 From 5cfb7b3477b0f7ec18c9389d377998c1a5baf224 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sat, 22 Mar 2025 09:39:33 -0400 Subject: [PATCH 18/18] Fix poetry test command --- .gitea/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 941bdaf..aa0f9c9 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -9,4 +9,4 @@ jobs: - run: pipx install poetry && sudo apt-get update &&sudo apt-get install python3-dev -y - run: git clone https://www.alexselimov.com/git/aselimov/code_rag.git && cd code_rag && git checkout ${{ gitea.ref_name }} - run: cd code_rag && /root/.local/bin/poetry install - - run: /root/.local/bin/poetry run pytest -v + - run: cd code_rag && /root/.local/bin/poetry run pytest -v -- 2.20.1