Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow for cli commands #1620

Closed
wants to merge 10 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/agenta-cli-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: 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
Loading