Skip to content

Commit

Permalink
fix (ci): update step to have a working directory of the path to baby…
Browse files Browse the repository at this point in the history
…_name_generator
  • Loading branch information
aybruhm committed Nov 25, 2024
1 parent 3d04eba commit 4225d02
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/cli-commands-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ jobs:
- name: Create .env file
run: |
echo "OPENAI_API_KEY=${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}" > .env
working-directory: examples/baby_name_generator
working-directory: examples/deprecated_sdk_v2/baby_name_generator

- name: Run agenta init
run: |
APP_NAME="gh-cli-$(date +'%d-%m-%y_%H-%M-%S')"
cd examples/baby_name_generator
agenta init --app-name $APP_NAME --backend-host ${{ secrets.BACKEND_HOST }}
working-directory: examples/deprecated_sdk_v2/baby_name_generator
shell: bash
continue-on-error: false

- name: Run agenta variant serve
run: |
cd examples/baby_name_generator
agenta variant serve --file_name app.py 2>&1 | tee ../../serve_output.log
agenta variant serve --file_name app.py 2>&1 | tee serve_output.log
working-directory: examples/deprecated_sdk_v2/baby_name_generator
shell: bash
continue-on-error: false

Expand All @@ -55,8 +55,8 @@ jobs:

- name: Run agenta variant serve with overwrite
run: |
cd examples/baby_name_generator
agenta variant serve --file_name app.py --overwrite
working-directory: examples/deprecated_sdk_v2/baby_name_generator
shell: bash
continue-on-error: false

Expand All @@ -83,20 +83,20 @@ jobs:
- name: Create .env file
run: |
echo "OPENAI_API_KEY=${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}" > .env
working-directory: examples/baby_name_generator
working-directory: examples/deprecated_sdk_v2/baby_name_generator

- name: Run agenta init
run: |
APP_NAME="gh-cli-$(date +'%d-%m-%y_%H-%M-%S')"
cd examples/baby_name_generator
AGENTA_API_KEY=${{ secrets.AGENTA_API_KEY }} agenta init --app-name $APP_NAME --backend-host https://cloud.agenta.ai --organisation-name team
working-directory: examples/deprecated_sdk_v2/baby_name_generator
shell: bash
continue-on-error: false

- name: Run agenta variant serve
run: |
cd examples/baby_name_generator
agenta variant serve --file_name app.py 2>&1 | tee ../../serve_output.log
agenta variant serve --file_name app.py 2>&1 | tee serve_output.log
working-directory: examples/deprecated_sdk_v2/baby_name_generator
shell: bash
continue-on-error: false

Expand All @@ -109,7 +109,7 @@ jobs:

- name: Run agenta variant serve with overwrite
run: |
cd examples/baby_name_generator
agenta variant serve --file_name app.py --overwrite
working-directory: examples/deprecated_sdk_v2/baby_name_generator
shell: bash
continue-on-error: false

0 comments on commit 4225d02

Please sign in to comment.