From 4edf551a2782784b4895b2c5057e587d7d7e8ce2 Mon Sep 17 00:00:00 2001 From: aakrem Date: Thu, 16 May 2024 12:32:54 +0200 Subject: [PATCH] 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 cef42f896a..920d76b874 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 +