From 6bbfce4c5e80a63f516dd695a07a26336a8e579e Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 21:51:29 +0200 Subject: [PATCH 01/21] workflow for cli commands --- .github/workflows/agenta-cli-test.yml | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/agenta-cli-test.yml diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml new file mode 100644 index 000000000..104d099ac --- /dev/null +++ b/.github/workflows/agenta-cli-test.yml @@ -0,0 +1,44 @@ +name: Agenta CLI Workflow + +on: + pull_request: + paths: + - "agenta-backend/**" + - "agenta-cli/**" + +jobs: + run-agenta: + runs-on: ubuntu-latest + environment: oss + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python 3.9 + uses: actions/setup-python@v5 + with: + python-version: '3.9' + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + + - name: Configure Poetry + run: | + poetry config virtualenvs.in-project true + + - name: Install dependencies + run: | + cd agenta-cli + poetry install + + - name: Initialize Agenta + env: + BACKEND_HOST: ${{ secrets.BACKEND_HOST }} + run: | + cd ../examples/baby_name_generator + poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST + + - name: Serve Application + run: | + poetry run agenta variant serve --file_name app.py \ No newline at end of file From 63e824264f24fb12b60e80b78de309f3c4e3c39f Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 21:53:37 +0200 Subject: [PATCH 02/21] comment paths to test --- .github/workflows/agenta-cli-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 104d099ac..0d6a755ba 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -2,9 +2,9 @@ name: Agenta CLI Workflow on: pull_request: - paths: - - "agenta-backend/**" - - "agenta-cli/**" + # paths: + # - "agenta-backend/**" + # - "agenta-cli/**" jobs: run-agenta: From b2f349ed197d68dbf5918a1506c354d678a3bdfb Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 21:55:25 +0200 Subject: [PATCH 03/21] fix path --- .github/workflows/agenta-cli-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 0d6a755ba..4a84e3b3b 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -36,7 +36,8 @@ jobs: env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | - cd ../examples/baby_name_generator + pwd + cd ./../examples/baby_name_generator poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST - name: Serve Application From 36a9af5dfad98249326f3832a6e7a3636af577a0 Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 21:56:28 +0200 Subject: [PATCH 04/21] fix path --- .github/workflows/agenta-cli-test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 4a84e3b3b..614cbe73d 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -36,8 +36,7 @@ jobs: env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | - pwd - cd ./../examples/baby_name_generator + cd ./examples/baby_name_generator poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST - name: Serve Application From 71e4e6b2b7f3c0b143c9da230adc232b3149b2dd Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 22:02:53 +0200 Subject: [PATCH 05/21] fix path --- .github/workflows/agenta-cli-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 614cbe73d..0b5c4300c 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -36,7 +36,7 @@ jobs: env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | - cd ./examples/baby_name_generator + cd examples/baby_name_generator poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST - name: Serve Application From acc76f190f0969d62373c87d2fc05f56b6fa65a3 Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 22:07:18 +0200 Subject: [PATCH 06/21] remove poetry run --- .github/workflows/agenta-cli-test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 0b5c4300c..7333caa23 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -31,14 +31,17 @@ jobs: run: | cd agenta-cli poetry install + poetry shell - name: Initialize Agenta env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | + pwd + ls agenta cd examples/baby_name_generator - poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST + agenta init --app_name woooo --backend_host $BACKEND_HOST - name: Serve Application run: | - poetry run agenta variant serve --file_name app.py \ No newline at end of file + agenta variant serve --file_name app.py \ No newline at end of file From 8fcc861a8c8d2c39341bfdc17992dc1e93dd5a62 Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 22:09:44 +0200 Subject: [PATCH 07/21] remove poetry shell --- .github/workflows/agenta-cli-test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 7333caa23..29abe3689 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -31,7 +31,6 @@ jobs: run: | cd agenta-cli poetry install - poetry shell - name: Initialize Agenta env: @@ -40,8 +39,8 @@ jobs: pwd ls agenta cd examples/baby_name_generator - agenta init --app_name woooo --backend_host $BACKEND_HOST + poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST - name: Serve Application run: | - agenta variant serve --file_name app.py \ No newline at end of file + poetry run agenta variant serve --file_name app.py \ No newline at end of file From b23c4a92c2a566d2be0c412d2539c5288be0b239 Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 22:11:58 +0200 Subject: [PATCH 08/21] add all in 1 step --- .github/workflows/agenta-cli-test.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 29abe3689..3ce22dc7e 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -28,19 +28,13 @@ jobs: poetry config virtualenvs.in-project true - name: Install dependencies - run: | - cd agenta-cli - poetry install - - - name: Initialize Agenta env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | + cd agenta-cli + poetry install pwd ls agenta - cd examples/baby_name_generator + cd ../examples/baby_name_generator poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST - - - name: Serve Application - run: | poetry run agenta variant serve --file_name app.py \ No newline at end of file From 082258f68b5b5ab977d357d3651af558cad9e0f9 Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 22:14:12 +0200 Subject: [PATCH 09/21] ls --- .github/workflows/agenta-cli-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 3ce22dc7e..3946c6af1 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -34,7 +34,7 @@ jobs: cd agenta-cli poetry install pwd - ls agenta cd ../examples/baby_name_generator + ls poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST poetry run agenta variant serve --file_name app.py \ No newline at end of file From 10ee324fed5f5cfa6d9b86e369da248b500c78dc Mon Sep 17 00:00:00 2001 From: aakrem Date: Mon, 6 May 2024 22:24:46 +0200 Subject: [PATCH 10/21] run from agenta-cli --- .github/workflows/agenta-cli-test.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 3946c6af1..fe3011317 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -27,14 +27,12 @@ jobs: run: | poetry config virtualenvs.in-project true - - name: Install dependencies + - name: Initialize Agenta env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | - cd agenta-cli - poetry install - pwd - cd ../examples/baby_name_generator - ls - poetry run agenta init --app_name woooo --backend_host $BACKEND_HOST - poetry run agenta variant serve --file_name app.py \ No newline at end of file + poetry run python ../../agenta-cli/agenta init --app_name woooo --backend_host $BACKEND_HOST + + - name: Serve Application + run: | + poetry run python ../../agenta-cli/agenta variant serve --file_name app.py \ No newline at end of file From 303eecc01466fc324841d8a07d34cc0edb6f50f9 Mon Sep 17 00:00:00 2001 From: aakrem Date: Wed, 15 May 2024 19:51:05 +0200 Subject: [PATCH 11/21] add workflow for cli commands --- .github/workflows/agenta-cli-test.yml | 85 ++++++++++++++++----------- 1 file changed, 52 insertions(+), 33 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index fe3011317..ce0324c41 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -1,38 +1,57 @@ name: Agenta CLI Workflow on: - pull_request: - # paths: - # - "agenta-backend/**" - # - "agenta-cli/**" + pull_request: + # paths: + # - "agenta-backend/**" + # - "agenta-cli/**" jobs: - run-agenta: - runs-on: ubuntu-latest - environment: oss - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python 3.9 - uses: actions/setup-python@v5 - with: - python-version: '3.9' - - - name: Install Poetry - run: | - curl -sSL https://install.python-poetry.org | python3 - - - - name: Configure Poetry - run: | - poetry config virtualenvs.in-project true - - - name: Initialize Agenta - env: - BACKEND_HOST: ${{ secrets.BACKEND_HOST }} - run: | - poetry run python ../../agenta-cli/agenta init --app_name woooo --backend_host $BACKEND_HOST - - - name: Serve Application - run: | - poetry run python ../../agenta-cli/agenta variant serve --file_name app.py \ No newline at end of file + run-agenta-cli: + runs-on: ubuntu-latest + environment: oss + steps: + - name: Check out repository + uses: actions/checkout@v4 + - name: Set up python + id: setup-python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + + - name: Load cached venv + id: cached-poetry-dependencies + uses: actions/cache@v3 + with: + path: .venv + key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + + - name: Install dependencies + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' + run: | + cd agenta-cli + poetry install --no-interaction --no-root + + + - name: Run agenta commands in different directory + env: + BACKEND_HOST: ${{ secrets.BACKEND_HOST }} + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' + run: | + source .venv/bin/activate + cd examples/baby_name_generator + agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} + agenta variant serve --file_name app.py + agenta variant serve --file_name app.py --overwrite + + # - name: Create .env file + # run: | + # echo "OPEN_API_KEY=${{ secrets.OPEN_API_KEY }}" > .env + # working-directory: examples/baby_name_generator \ No newline at end of file From f42eed76e40797ff8e0946dd581bfbb422f9a0ab Mon Sep 17 00:00:00 2001 From: aakrem Date: Wed, 15 May 2024 21:26:31 +0200 Subject: [PATCH 12/21] initial workflow --- .github/workflows/agenta-cli-test.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index ce0324c41..b6f5ac912 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -13,6 +13,7 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v4 + - name: Set up python id: setup-python uses: actions/setup-python@v5 @@ -32,6 +33,8 @@ jobs: with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + restore-keys: | + venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}- - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' @@ -39,14 +42,13 @@ jobs: cd agenta-cli poetry install --no-interaction --no-root - - name: Run agenta commands in different directory env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: | - source .venv/bin/activate - cd examples/baby_name_generator + cd agenta-cli + source $(poetry env info --path)/bin/activate + cd ../examples/baby_name_generator agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} agenta variant serve --file_name app.py agenta variant serve --file_name app.py --overwrite @@ -54,4 +56,4 @@ jobs: # - name: Create .env file # run: | # echo "OPEN_API_KEY=${{ secrets.OPEN_API_KEY }}" > .env - # working-directory: examples/baby_name_generator \ No newline at end of file + # working-directory: examples/baby_name_generator From 1908bbf1912e650c976717a8dff29f9d760cc06d Mon Sep 17 00:00:00 2001 From: aakrem Date: Wed, 15 May 2024 21:33:17 +0200 Subject: [PATCH 13/21] use poetry run --- .github/workflows/agenta-cli-test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index b6f5ac912..adde23a3a 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -47,11 +47,9 @@ jobs: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | cd agenta-cli - source $(poetry env info --path)/bin/activate - cd ../examples/baby_name_generator - agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} - agenta variant serve --file_name app.py - agenta variant serve --file_name app.py --overwrite + poetry run agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} + poetry run agenta variant serve --file_name ../examples/baby_name_generator/app.py + poetry run agenta variant serve --file_name ../examples/baby_name_generator/app.py --overwrite # - name: Create .env file # run: | From af564e28216b2a70df969aa3fc7378c27df61773 Mon Sep 17 00:00:00 2001 From: aakrem Date: Wed, 15 May 2024 21:43:43 +0200 Subject: [PATCH 14/21] use poetry shell --- .github/workflows/agenta-cli-test.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index adde23a3a..5f54d046e 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -42,15 +42,18 @@ jobs: cd agenta-cli poetry install --no-interaction --no-root - - name: Run agenta commands in different directory + - name: Activate virtual environment and run agenta commands env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | cd agenta-cli - poetry run agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} - poetry run agenta variant serve --file_name ../examples/baby_name_generator/app.py - poetry run agenta variant serve --file_name ../examples/baby_name_generator/app.py --overwrite - + poetry shell + cd ../examples/baby_name_generator + agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} + agenta variant serve --file_name app.py + agenta variant serve --file_name app.py --overwrite + shell: bash + # - name: Create .env file # run: | # echo "OPEN_API_KEY=${{ secrets.OPEN_API_KEY }}" > .env From f724a4d85cbfac28cb65e1e9131f7c956f42a577 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 11:12:35 +0200 Subject: [PATCH 15/21] source virtual env in each step --- .github/workflows/agenta-cli-test.yml | 34 +++++++++++++++++++++------ 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 5f54d046e..cef42f896 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -37,23 +37,43 @@ jobs: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}- - name: Install dependencies - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: | cd agenta-cli poetry install --no-interaction --no-root - - name: Activate virtual environment and run agenta commands + - name: Run agenta init env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | cd agenta-cli - poetry shell + source $(poetry env info --path)/bin/activate cd ../examples/baby_name_generator - agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} - agenta variant serve --file_name app.py - agenta variant serve --file_name app.py --overwrite + poetry run agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} shell: bash - + continue-on-error: false + + - name: Run agenta variant serve + env: + BACKEND_HOST: ${{ secrets.BACKEND_HOST }} + run: | + cd agenta-cli + source $(poetry env info --path)/bin/activate + cd ../examples/baby_name_generator + poetry run agenta variant serve --file_name app.py + shell: bash + continue-on-error: false + + - name: Run agenta variant serve with overwrite + env: + BACKEND_HOST: ${{ secrets.BACKEND_HOST }} + run: | + cd agenta-cli + source $(poetry env info --path)/bin/activate + cd ../examples/baby_name_generator + poetry run agenta variant serve --file_name app.py --overwrite + shell: bash + continue-on-error: false + # - name: Create .env file # run: | # echo "OPEN_API_KEY=${{ secrets.OPEN_API_KEY }}" > .env From 4edf551a2782784b4895b2c5057e587d7d7e8ce2 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 12:32:54 +0200 Subject: [PATCH 16/21] switch to pip --- .github/workflows/agenta-cli-test.yml | 47 +++++++++------------------ 1 file changed, 15 insertions(+), 32 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index cef42f896..920d76b87 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -20,35 +20,25 @@ jobs: with: python-version: "3.12" - - name: Install Poetry - uses: snok/install-poetry@v1 - with: - virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true - - - name: Load cached venv - id: cached-poetry-dependencies - uses: actions/cache@v3 - with: - path: .venv - key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - restore-keys: | - venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}- - - name: Install dependencies run: | + python -m pip install --upgrade pip setuptools + pip install poetry cd agenta-cli poetry install --no-interaction --no-root + pip install -e . + + - name: Create .env file + run: | + echo "OPEN_API_KEY=${{ secrets.OPEN_API_KEY }}" > .env + working-directory: examples/baby_name_generator - name: Run agenta init env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | - cd agenta-cli - source $(poetry env info --path)/bin/activate - cd ../examples/baby_name_generator - poetry run agenta init --app_name woooo --backend_host ${{ secrets.BACKEND_HOST }} + cd examples/baby_name_generator + agenta init --app_name woooo2 --backend_host ${{ secrets.BACKEND_HOST }} shell: bash continue-on-error: false @@ -56,10 +46,8 @@ jobs: env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | - cd agenta-cli - source $(poetry env info --path)/bin/activate - cd ../examples/baby_name_generator - poetry run agenta variant serve --file_name app.py + cd examples/baby_name_generator + agenta variant serve --file_name app.py shell: bash continue-on-error: false @@ -67,14 +55,9 @@ jobs: env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | - cd agenta-cli - source $(poetry env info --path)/bin/activate - cd ../examples/baby_name_generator - poetry run agenta variant serve --file_name app.py --overwrite + cd examples/baby_name_generator + agenta variant serve --file_name app.py --overwrite shell: bash continue-on-error: false - # - name: Create .env file - # run: | - # echo "OPEN_API_KEY=${{ secrets.OPEN_API_KEY }}" > .env - # working-directory: examples/baby_name_generator + From 10ed1b5d43216a3329e56ea860ab33fd1c4bb7e6 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 12:42:51 +0200 Subject: [PATCH 17/21] random app name --- .github/workflows/agenta-cli-test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 920d76b87..d2b1a4b32 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -23,10 +23,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools - pip install poetry cd agenta-cli - poetry install --no-interaction --no-root pip install -e . + poetry install --no-interaction - name: Create .env file run: | @@ -37,8 +36,9 @@ jobs: env: BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | + APP_NAME="gh-cli-$(shuf -i 1000-9999 -n 1)" cd examples/baby_name_generator - agenta init --app_name woooo2 --backend_host ${{ secrets.BACKEND_HOST }} + agenta init --app_name $APP_NAME --backend_host ${{ secrets.BACKEND_HOST }} shell: bash continue-on-error: false @@ -59,5 +59,3 @@ jobs: agenta variant serve --file_name app.py --overwrite shell: bash continue-on-error: false - - From 56aac427b19e07c92551364b07ddb31e60b9fe48 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 12:47:48 +0200 Subject: [PATCH 18/21] removing poetry --- .github/workflows/agenta-cli-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index d2b1a4b32..56521928a 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -23,9 +23,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools + pip install poetry cd agenta-cli pip install -e . - poetry install --no-interaction - name: Create .env file run: | From b386cadd94625b9cfb1e04d074e34a5e4a5ae4dc Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 12:51:05 +0200 Subject: [PATCH 19/21] add paths --- .github/workflows/agenta-cli-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 56521928a..9851af6f5 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -2,9 +2,9 @@ name: Agenta CLI Workflow on: pull_request: - # paths: - # - "agenta-backend/**" - # - "agenta-cli/**" + paths: + - "agenta-backend/**" + - "agenta-cli/**" jobs: run-agenta-cli: From e44036972c9e8a26cb997c5b4d351247bb5f6ee8 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 14:12:45 +0200 Subject: [PATCH 20/21] rename workflow --- .github/workflows/agenta-cli-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/agenta-cli-test.yml index 9851af6f5..34427be30 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/agenta-cli-test.yml @@ -1,4 +1,4 @@ -name: Agenta CLI Workflow +name: agenta-cli commands on: pull_request: From 226a44e2494a435b578028ddec932ee5526a73de Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 14:20:05 +0200 Subject: [PATCH 21/21] rename file and workflow --- .../workflows/{agenta-cli-test.yml => cli-commands-tests.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{agenta-cli-test.yml => cli-commands-tests.yml} (98%) diff --git a/.github/workflows/agenta-cli-test.yml b/.github/workflows/cli-commands-tests.yml similarity index 98% rename from .github/workflows/agenta-cli-test.yml rename to .github/workflows/cli-commands-tests.yml index 34427be30..a9dde248a 100644 --- a/.github/workflows/agenta-cli-test.yml +++ b/.github/workflows/cli-commands-tests.yml @@ -1,4 +1,4 @@ -name: agenta-cli commands +name: cli commands tests on: pull_request: