From 74531a95541fbcb1a9deca9da138ed8b85493b6c Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 15:47:39 +0200 Subject: [PATCH 1/4] remove not needed envs --- .github/workflows/cli-commands-tests.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/cli-commands-tests.yml b/.github/workflows/cli-commands-tests.yml index a9dde248a2..94e88caa13 100644 --- a/.github/workflows/cli-commands-tests.yml +++ b/.github/workflows/cli-commands-tests.yml @@ -29,12 +29,10 @@ jobs: - name: Create .env file run: | - echo "OPEN_API_KEY=${{ secrets.OPEN_API_KEY }}" > .env + echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > .env working-directory: examples/baby_name_generator - name: Run agenta init - env: - BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | APP_NAME="gh-cli-$(shuf -i 1000-9999 -n 1)" cd examples/baby_name_generator @@ -43,8 +41,6 @@ jobs: continue-on-error: false - name: Run agenta variant serve - env: - BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | cd examples/baby_name_generator agenta variant serve --file_name app.py @@ -52,8 +48,6 @@ jobs: continue-on-error: false - name: Run agenta variant serve with overwrite - env: - BACKEND_HOST: ${{ secrets.BACKEND_HOST }} run: | cd examples/baby_name_generator agenta variant serve --file_name app.py --overwrite From 2544b8d1815955d68544385b6d3b2f99ca5d8111 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 15:48:22 +0200 Subject: [PATCH 2/4] test --- .github/workflows/cli-commands-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli-commands-tests.yml b/.github/workflows/cli-commands-tests.yml index 94e88caa13..c5115a6d15 100644 --- a/.github/workflows/cli-commands-tests.yml +++ b/.github/workflows/cli-commands-tests.yml @@ -2,9 +2,9 @@ name: cli commands tests on: pull_request: - paths: - - "agenta-backend/**" - - "agenta-cli/**" + # paths: + # - "agenta-backend/**" + # - "agenta-cli/**" jobs: run-agenta-cli: From 16cd527340e3912ae45367424fec5a6d1da3418f Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 16:20:08 +0200 Subject: [PATCH 3/4] rename openai key name --- .github/workflows/cli-commands-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli-commands-tests.yml b/.github/workflows/cli-commands-tests.yml index c5115a6d15..790e0b57d9 100644 --- a/.github/workflows/cli-commands-tests.yml +++ b/.github/workflows/cli-commands-tests.yml @@ -29,7 +29,7 @@ jobs: - name: Create .env file run: | - echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > .env + echo "OPENAI_API_KEY=${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}" > .env working-directory: examples/baby_name_generator - name: Run agenta init From cde47b7b1b929b688ce8d60d91d90a32114dd076 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 16:23:26 +0200 Subject: [PATCH 4/4] uncomment code --- .github/workflows/cli-commands-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli-commands-tests.yml b/.github/workflows/cli-commands-tests.yml index 790e0b57d9..12312e6107 100644 --- a/.github/workflows/cli-commands-tests.yml +++ b/.github/workflows/cli-commands-tests.yml @@ -2,9 +2,9 @@ name: cli commands tests on: pull_request: - # paths: - # - "agenta-backend/**" - # - "agenta-cli/**" + paths: + - "agenta-backend/**" + - "agenta-cli/**" jobs: run-agenta-cli: