mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
ci: only use --extra test for unit tests
This can fix unit test github action error by removing `--extra eval`. `--extra a2a` is not needed because it's included in `test`. All tests are still passing. Co-authored-by: Liang Wu <wuliang@google.com> PiperOrigin-RevId: 869014318
This commit is contained in:
committed by
Copybara-Service
parent
9f7d5b3f14
commit
845818be44
@@ -187,8 +187,7 @@ uv venv --python "python3.11" ".venv" source .venv/bin/activate
|
||||
|
||||
uv sync --all-extras ```
|
||||
|
||||
**Minimal setup for testing only (matches CI):** `bash uv sync --extra test
|
||||
--extra eval --extra a2a`
|
||||
**Minimal setup for testing only (matches CI):** `bash uv sync --extra test`
|
||||
|
||||
**Virtual Environment Usage (Required):** - **Always use** `.venv/bin/python` or
|
||||
`.venv/bin/pytest` directly - **Or activate** with `source .venv/bin/activate`
|
||||
@@ -363,7 +362,7 @@ catching issues with the public API.
|
||||
**Quick start:** Run all tests with: `bash pytest tests/unittests`
|
||||
|
||||
**Recommended:** Match CI configuration before submitting PRs: `bash uv sync
|
||||
--extra test --extra eval --extra a2a && pytest tests/unittests`
|
||||
--extra test && pytest tests/unittests`
|
||||
|
||||
**Additional options:** ```bash
|
||||
|
||||
|
||||
+3
-3
@@ -180,11 +180,11 @@ part before or alongside your code PR.
|
||||
pytest ./tests/unittests
|
||||
```
|
||||
|
||||
NOTE: for accurate repro of test failure, only include `test`, `eval` and
|
||||
`a2a` as extra dependencies.
|
||||
NOTE: for accurate repro of test failure, only include `test` as extra
|
||||
dependencies.
|
||||
|
||||
```shell
|
||||
uv sync --extra test --extra eval --extra a2a
|
||||
uv sync --extra test
|
||||
pytest ./tests/unittests
|
||||
```
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ for version in "${versions_to_run[@]}"; do
|
||||
|
||||
# 3. perform the unit tests
|
||||
echo "Setting up test environment in .unittest_venv..."
|
||||
uv sync --extra test --extra eval --extra a2a --active
|
||||
uv sync --extra test --active
|
||||
|
||||
echo "Running unit tests..."
|
||||
TEST_EXIT_CODE=0
|
||||
|
||||
Reference in New Issue
Block a user