Auto-generated library v4.5.0 for API v1.74.0. (#483) #125
This file contains hidden or 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: Test Python library generator | |
| on: | |
| push: | |
| branches: ['main', 'release'] | |
| paths: | |
| - 'generator/**' | |
| - 'tests/generator/**' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| pull_request: | |
| branches: ['main', 'release'] | |
| paths: | |
| - 'generator/**' | |
| - 'tests/generator/**' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.13 | |
| - name: Install dependencies | |
| run: uv sync --python 3.13 | |
| - name: Lint with ruff | |
| run: | | |
| uv run ruff check generator/ | |
| uv run ruff format --check generator/ | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.13 | |
| - name: Install dependencies | |
| run: uv sync --python 3.13 --group generator | |
| - name: Test generator | |
| run: uv run pytest tests/generator/ -v |