Skip to content

[Fix] (SDK) api key not fetched from self.api_key #791

[Fix] (SDK) api key not fetched from self.api_key

[Fix] (SDK) api key not fetched from self.api_key #791

Workflow file for this run

name: Run SDK tests
on:
pull_request:
paths:
- "agenta-cli/**"
- "agenta-cli/pyproject.toml"
- "agenta-cli/poetry.lock"
workflow_dispatch:
jobs:
sdk_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install Poetry
run: pip install poetry
- name: Activate shell, install dependencies and agenta SDK
run: |
cd agenta-cli
poetry install
- name: Run pytest
run: |
cd agenta-cli/agenta/tests
poetry run pytest prompt_sdk/