cmd/protoc-gen-connect-python: follow connect-python APIs: 2025-07-08 #501
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-2404-4-cores | |
| steps: | |
| # https://github.com/actions/checkout | |
| - uses: actions/checkout@v4 | |
| # https://github.com/actions/setup-python | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: ".python-version" | |
| # https://github.com/astral-sh/setup-uv | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --frozen --all-extras --dev | |
| - name: Run Lint | |
| run: | | |
| uv run mypy src | |
| uv run pyright src | |
| uv run ruff check src | |
| uv run ruff format --check src | |
| test: | |
| runs-on: ubuntu-2404-4-cores | |
| steps: | |
| # https://github.com/actions/checkout | |
| - uses: actions/checkout@v4 | |
| # https://github.com/actions/setup-python | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: ".python-version" | |
| # https://github.com/astral-sh/setup-uv | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| - name: Install the project | |
| run: uv sync --frozen --all-extras --dev | |
| - name: Run Tests | |
| run: uv run pytest |