Skip to content

Commit

Permalink
initial workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aakrem committed May 15, 2024
1 parent 303eecc commit f42eed7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/agenta-cli-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,26 +33,27 @@ 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'
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
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
# - name: Create .env file
# run: |
# echo "OPEN_API_KEY=${{ secrets.OPEN_API_KEY }}" > .env
# working-directory: examples/baby_name_generator
# working-directory: examples/baby_name_generator

0 comments on commit f42eed7

Please sign in to comment.