Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python 3.13 tests, fixes:#518 #519

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/test_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,26 @@ on:
paths:
- "google/**"
- "tests/**"
- "samples/**"
- "pyproject.toml"
- "samples/*.py"
- "setup.py"
# Allow manual runs
# Allow manual runs
workflow_dispatch:

jobs:
test3_13:
name: Test Py3.13
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Run tests
run: |
python --version
pip install .[dev]
python -m unittest
test3_12:
name: Test Py3.12
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion google/generativeai/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def list_operations(*, client=None) -> Iterator[CreateTunedModelOperation]:
# not a gapic Operation object (`google.api_core.operation.Operation`)
operations = (
CreateTunedModelOperation.from_proto(op, client)
for op in client.list_operations(name="", filter_="")
for op in client.list_operations(
name="", filter_="")
)

return operations
Expand Down
Loading