Test: use environment variable for ZHIPU_AI_API_KEY (#7680)

### What problem does this PR solve?

use environment variable for ZHIPU_AI_API_KEY

### Type of change

- [x] Test update
This commit is contained in:
liu an
2025-05-16 13:51:21 +08:00
committed by GitHub
parent bb1268ef4b
commit 04edf9729f
3 changed files with 78 additions and 67 deletions

View File

@ -101,6 +101,8 @@ jobs:
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py
- name: Run http api tests against Elasticsearch
env:
ZHIPU_AI_API_KEY: ${{ secrets.ZHIPU_AI_API_KEY }}
run: |
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
export HOST_ADDRESS=http://host.docker.internal:9380
@ -145,6 +147,8 @@ jobs:
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py
- name: Run http api tests against Infinity
env:
ZHIPU_AI_API_KEY: ${{ secrets.ZHIPU_AI_API_KEY }}
run: |
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
export HOST_ADDRESS=http://host.docker.internal:9380