diff --git a/.github/workflows/test_pr.yaml b/.github/workflows/test_pr.yaml index 362a53e49..9c71c572f 100644 --- a/.github/workflows/test_pr.yaml +++ b/.github/workflows/test_pr.yaml @@ -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 diff --git a/google/generativeai/operations.py b/google/generativeai/operations.py index 52fd8a1b8..cda3802ad 100644 --- a/google/generativeai/operations.py +++ b/google/generativeai/operations.py @@ -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