[Fix] (SDK) api key not fetched from self.api_key #791
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |